summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dmarc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 15:40:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 15:40:39 +0000
commit8c3274037b1a7a8efafbd3a6bc4915cdfdfaa9ac (patch)
treeadcf8765bb678a75b606f5c69609ec2822562f52 /src/plugins/lua/dmarc.lua
parent27df9aa32df070bffec7ab27ceb9069f3e193560 (diff)
downloadrspamd-8c3274037b1a7a8efafbd3a6bc4915cdfdfaa9ac.tar.gz
rspamd-8c3274037b1a7a8efafbd3a6bc4915cdfdfaa9ac.zip
[Minor] Allow '\' in dmarc records
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r--src/plugins/lua/dmarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 077b38465..3b380c38b 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -61,7 +61,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
+ local sep = lpeg.S("\\;") * space
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)