commit e2d81fa: [Minor] Fix legacy string values in modify headers routine

Vsevolod Stakhov vsevolod at rspamd.com
Mon Aug 29 20:28:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-08-29 21:16:31 +0100
URL: https://github.com/rspamd/rspamd/commit/e2d81fa602056d0121fb8d0ec81ba491283d8bab

[Minor] Fix legacy string values in modify headers routine
Issue: #4246

---
 lualib/lua_mime.lua | 2 ++
 1 file changed, 2 insertions(+)

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


More information about the Commits mailing list