]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix legacy string values in modify headers routine
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 29 Aug 2022 20:16:31 +0000 (21:16 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 29 Aug 2022 20:21:38 +0000 (21:21 +0100)
Issue: #4246

lualib/lua_mime.lua

index 02329badd65d58f00d788bb047c8a4bb75a88906..01a2fc95e1e050131193ed93fc65dcd8711bdcad 100644 (file)
@@ -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