summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-26 11:20:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-26 11:20:54 +0100
commita40fd90f81de1411c54ee5e14fdfdd9905c2009f (patch)
tree1511cd2d7e50e65080e6354fd4c0df0e6f75282c
parent27517142cf5364fd8cc8532e76e18adb8cf11a4d (diff)
downloadrspamd-a40fd90f81de1411c54ee5e14fdfdd9905c2009f.tar.gz
rspamd-a40fd90f81de1411c54ee5e14fdfdd9905c2009f.zip
[Minor] Spill on '!~' as well
-rw-r--r--src/plugins/lua/spamassassin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index 39ca8e327..267be8ccf 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -700,7 +700,7 @@ local function process_sa_conf(f)
(function ()
l = lua_util.rspamd_str_trim(l)
-- Replace bla=~/re/ with bla =~ /re/ (#2372)
- l = l:gsub('([^%s])%s*=~%s*([^%s])', '%1 =~ %2')
+ l = l:gsub('([^%s])%s*[=!]~%s*([^%s])', '%1 =~ %2')
if string.len(l) == 0 or string.sub(l, 1, 1) == '#' then
return