From: Vsevolod Stakhov Date: Tue, 21 Sep 2021 18:21:30 +0000 (+0100) Subject: [Fix] Fix passing of rspamd_text in selectors pipelines X-Git-Tag: 3.1~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e9750de3537a7f6902c070ab2010d4c6288d4c0;p=rspamd.git [Fix] Fix passing of rspamd_text in selectors pipelines --- 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