]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix passing of rspamd_text in selectors pipelines
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Sep 2021 18:21:30 +0000 (19:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Sep 2021 18:21:30 +0000 (19:21 +0100)
lualib/lua_selectors/init.lua

index 62070a1147f6f16a3f08da7769cae3e70981fdd2..726f7d394edc82899f358dd4b59c9c5a6219a042 100644 (file)
@@ -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