Browse Source

domain match should be case insensitive

domain match should be case insensitive - see https://github.com/rspamd/rspamd/issues/3749#issuecomment-858013193
tags/3.0
Jesse Norell 3 years ago
parent
commit
f2d94be62f
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/plugins/lua/dmarc.lua

+ 2
- 2
src/plugins/lua/dmarc.lua View File

@@ -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
end

Loading…
Cancel
Save