]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Try to stringify meta headers
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 2 Dec 2024 14:37:15 +0000 (14:37 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 2 Dec 2024 14:37:15 +0000 (14:37 +0000)
Issue: #5237

src/plugins/lua/metadata_exporter.lua

index e97dc8664d9fb90fe85c778900fc909a47267e86..de27a64aa59f21d6d2a3d15024efde6163fb3c0b 100644 (file)
@@ -325,7 +325,7 @@ local pushers = {
         if type(v) == 'table' then
           hdrs[pfx .. k] = ucl.to_format(v, 'json-compact')
         else
-          hdrs[pfx .. k] = rspamd_util.mime_header_encode(v)
+          hdrs[pfx .. k] = rspamd_util.mime_header_encode(tostring(v) or '')
         end
       end
     end