Browse Source

Merge pull request #4547 from rheoli/dmarc_txt_fix

[Fix] dmarc gramar - allow spaces before ";"
tags/3.6
Vsevolod Stakhov 9 months ago
parent
commit
1e224376b7
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lualib/plugins/dmarc.lua

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

@@ -241,7 +241,7 @@ local function gen_dmarc_grammar()
lpeg.locale(lpeg)
local space = lpeg.space^0
local name = lpeg.C(lpeg.alpha^1) * space
local sep = (lpeg.S("\\;") * space) + (lpeg.space^1)
local sep = space * (lpeg.S("\\;") * space) + (lpeg.space^1)
local value = lpeg.C(lpeg.P(lpeg.graph - sep)^1)
local pair = lpeg.Cg(name * "=" * space * value) * sep^-1
local list = lpeg.Cf(lpeg.Ct("") * pair^0, rawset)
@@ -357,4 +357,4 @@ end

exports.dmarc_check_record = dmarc_check_record

return exports
return exports

Loading…
Cancel
Save