From: Vsevolod Stakhov Date: Mon, 2 Dec 2024 14:37:15 +0000 (+0000) Subject: [Minor] Try to stringify meta headers X-Git-Tag: 3.11.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56595fc1098ee90155f6dc7d5546fc691be95c9c;p=thirdparty%2Frspamd.git [Minor] Try to stringify meta headers Issue: #5237 --- diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index e97dc8664d..de27a64aa5 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -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