commit 7ba43ea: Delete spaces from rua dmarc policy

Vitaliy Vasilenko me at vitalvas.com
Tue Sep 15 10:42:06 UTC 2020


Author: Vitaliy Vasilenko
Date: 2020-09-15 11:33:04 +0300
URL: https://github.com/rspamd/rspamd/commit/7ba43eada5c6ea9823ed5d4e5414f9835a7b291b (refs/pull/3485/head)

Delete spaces from rua dmarc policy

---
 src/plugins/lua/dmarc.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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'])
-


More information about the Commits mailing list