summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-08-29 21:16:31 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-08-29 21:21:38 +0100
commite2d81fa602056d0121fb8d0ec81ba491283d8bab (patch)
tree898969f41a13178c4c6429134b44f12f3a0bf634
parenta03bd8a999eecb6b6d81718e5d71da062d8e4b8a (diff)
downloadrspamd-e2d81fa602056d0121fb8d0ec81ba491283d8bab.tar.gz
rspamd-e2d81fa602056d0121fb8d0ec81ba491283d8bab.zip
[Minor] Fix legacy string values in modify headers routine
Issue: #4246
-rw-r--r--lualib/lua_mime.lua2
1 files changed, 2 insertions, 0 deletions
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