diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-15 11:35:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 11:35:06 +0100 |
commit | 69572723ae2a646684a0f216b0d89caa3176d191 (patch) | |
tree | 9cb4bc33300670d67a30aa4ab0f893fe3764ebdd | |
parent | bb78073cc83c2347204c9968d35bf1d038554a22 (diff) | |
parent | 7ba43eada5c6ea9823ed5d4e5414f9835a7b291b (diff) | |
download | rspamd-69572723ae2a646684a0f216b0d89caa3176d191.tar.gz rspamd-69572723ae2a646684a0f216b0d89caa3176d191.zip |
Merge pull request #3485 from vitalvas/bugfix/spaces-in-dmarc
[Minor] Delete spaces from rua dmarc policy
-rw-r--r-- | src/plugins/lua/dmarc.lua | 3 |
1 files changed, 1 insertions, 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']) - |