From 8c3274037b1a7a8efafbd3a6bc4915cdfdfaa9ac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 31 Oct 2016 15:40:16 +0000 Subject: [PATCH] [Minor] Allow '\' in dmarc records --- src/plugins/lua/dmarc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5