]> source.dussan.org Git - rspamd.git/commitdiff
Delete spaces from rua dmarc policy 3485/head
authorVitaliy Vasilenko <me@vitalvas.com>
Tue, 15 Sep 2020 08:33:04 +0000 (11:33 +0300)
committerVitaliy Vasilenko <me@vitalvas.com>
Tue, 15 Sep 2020 08:33:04 +0000 (11:33 +0300)
src/plugins/lua/dmarc.lua

index ab53eda56ca075be0bf953e3bfce53761a06db12..f19a49ad79f8db7392a428b1882683fa14232062 100644 (file)
@@ -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'])
-