]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Exclude '@' from quote character
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Oct 2020 16:10:20 +0000 (17:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 12 Oct 2020 16:10:20 +0000 (17:10 +0100)
lualib/lua_util.lua

index a7a0e6938332291c7f282757d07c52e186e83dc0..c4448117cce6ee8695b19d348c15b056d5a83b0c 100644 (file)
@@ -1437,7 +1437,7 @@ end
 -- @param {string} str input string
 -- @return {string} original or quoted string
 --]]]
-local tspecial = lpeg.S"()<>@,;:\\\"/[]?= \t\v"
+local tspecial = lpeg.S"()<>,;:\\\"/[]?= \t\v"
 local special_match = lpeg.P((1 - tspecial)^0 * tspecial^1)
 exports.maybe_smtp_quote_value = function(str)
   if special_match:match(str) then