From: Vsevolod Stakhov Date: Mon, 12 Oct 2020 16:10:20 +0000 (+0100) Subject: [Minor] Exclude '@' from quote character X-Git-Tag: 2.7~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=129652075c3615ffb8191a83150cbd4157dc1878;p=thirdparty%2Frspamd.git [Minor] Exclude '@' from quote character --- diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index a7a0e69383..c4448117cc 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -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