From 1e9750de3537a7f6902c070ab2010d4c6288d4c0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Sep 2021 19:21:30 +0100 Subject: [PATCH] [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 62070a1147..726f7d394e 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 -- 2.47.3