commit 1296520: [Minor] Exclude '@' from quote character

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Oct 12 16:14:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-10-12 17:10:20 +0100
URL: https://github.com/rspamd/rspamd/commit/129652075c3615ffb8191a83150cbd4157dc1878

[Minor] Exclude '@' from quote character

---
 lualib/lua_util.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua
index a7a0e6938..c4448117c 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


More information about the Commits mailing list