commit f2d94be: domain match should be case insensitive
GitHub
noreply at github.com
Thu Jun 10 16:14:05 UTC 2021
Author: Jesse Norell
Date: 2021-06-09 16:16:13 -0600
URL: https://github.com/rspamd/rspamd/commit/f2d94be62fdddb566d797918facb44974a941f0a (refs/pull/3791/head)
domain match should be case insensitive
domain match should be case insensitive - see https://github.com/rspamd/rspamd/issues/3749#issuecomment-858013193
---
src/plugins/lua/dmarc.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index aae556c96..ef2c89881 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -1199,7 +1199,7 @@ if opts['reporting'] == true then
if urlt['protocol'] ~= 'mailto' then
rspamd_logger.errx(rspamd_config, 'invalid URL: %s', url)
else
- if urlt['tld'] == rspamd_util.get_tld(reporting_domain) then
+ if string.lower(urlt['tld']) == string.lower(rspamd_util.get_tld(reporting_domain)) then
reporting_addrs[string.format('%s@%s', urlt['user'], urlt['host'])] = true
else
to_verify[string.format('%s@%s', urlt['user'], urlt['host'])] = urlt['host']
@@ -1620,4 +1620,4 @@ if opts.munging then
rspamd_config:register_dependency('ARC_SIGNED', 'DMARC_MUNGED')
rspamd_logger.infox(rspamd_config, 'enabled DMARC munging')
-end
\ No newline at end of file
+end
More information about the Commits
mailing list