From: Vsevolod Stakhov Date: Mon, 29 Aug 2022 20:16:31 +0000 (+0100) Subject: [Minor] Fix legacy string values in modify headers routine X-Git-Tag: 3.3~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e2d81fa602056d0121fb8d0ec81ba491283d8bab;p=rspamd.git [Minor] Fix legacy string values in modify headers routine Issue: #4246 --- diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 02329badd..01a2fc95e 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -532,6 +532,8 @@ exports.modify_headers = function(task, hdr_alterations) for _,v in ipairs(hdr) do table.insert(add_tbl, {-1, v}) end + elseif type(hdr) == 'string' then + table.insert(add_tbl, {-1, hdr}) end end if hdr_alterations.order then