From: Vitaliy Vasilenko Date: Tue, 15 Sep 2020 08:33:04 +0000 (+0300) Subject: Delete spaces from rua dmarc policy X-Git-Tag: 2.6~46^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ba43eada5c6ea9823ed5d4e5414f9835a7b291b;p=rspamd.git Delete spaces from rua dmarc policy --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index ab53eda56..f19a49ad7 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -1191,7 +1191,7 @@ if opts['reporting'] == true then delete_reports() else local upool = mempool.create() - local split = rspamd_str_split(policy['rua'], ',') + local split = rspamd_str_split(policy['rua']:gsub('%s+', ''), ',') for _, m in ipairs(split) do local url = rspamd_url.create(upool, m) if not url then @@ -1438,4 +1438,3 @@ rspamd_config:register_symbol({ rspamd_config:register_dependency('DMARC_CALLBACK', symbols['spf_allow_symbol']) rspamd_config:register_dependency('DMARC_CALLBACK', symbols['dkim_allow_symbol']) -