aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dmarc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-06 16:54:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-06 16:54:01 +0100
commit4ae3fe9af874de5e040762f3070eb74d5b1e7db0 (patch)
treea2f7eedf16e91d150076730b5210c0bb2177c762 /src/plugins/lua/dmarc.lua
parent28ed05f00fa209d20334c26b91aa964d44c5109f (diff)
downloadrspamd-4ae3fe9af874de5e040762f3070eb74d5b1e7db0.tar.gz
rspamd-4ae3fe9af874de5e040762f3070eb74d5b1e7db0.zip
[Fix] Fix base64 folding in Lua API
Issue: #2225
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r--src/plugins/lua/dmarc.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 652526d69..58e48bd01 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -744,7 +744,10 @@ if opts['reporting'] == true then
for k in pairs(reporting_addr) do
table.insert(tmp_addr, k)
end
- local encoded = rspamd_util.encode_base64(table.concat({xmlf('header'), xmlf('entries'), xmlf('footer')}), 78)
+ local encoded = rspamd_util.encode_base64(table.concat(
+ {xmlf('header'),
+ xmlf('entries'),
+ xmlf('footer')}), 78)
local function mail_cb(err, data, conn)
local function no_error(merr, mdata, wantcode)
wantcode = wantcode or '2'