commit 1e9750d: [Fix] Fix passing of rspamd_text in selectors pipelines

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Sep 21 18:28:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-09-21 19:21:30 +0100
URL: https://github.com/rspamd/rspamd/commit/1e9750de3537a7f6902c070ab2010d4c6288d4c0

[Fix] Fix passing of rspamd_text in selectors pipelines

---
 lualib/lua_selectors/init.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua
index 62070a114..726f7d394 100644
--- a/lualib/lua_selectors/init.lua
+++ b/lualib/lua_selectors/init.lua
@@ -58,7 +58,7 @@ local function implicit_tostring(t, ud_or_table)
 
     return logger.slog("%s", ud_or_table),'string'
   elseif t == 'userdata' then
-    if t.cookie and t.cookie == text_cookie then
+    if ud_or_table.cookie and ud_or_table.cookie == text_cookie then
       -- Preserve opaque
       return ud_or_table,'string'
     else


More information about the Commits mailing list