diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-24 13:24:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-24 13:24:53 +0100 |
commit | 73280f3dab76021bd7f04c35448d709cbfb35537 (patch) | |
tree | b812fead42f383d79925c1da0f1cd1b4255bcba5 /lualib/lua_magic/heuristics.lua | |
parent | b55e61b1ee78c1645c710d8d8ba5ea4bf0298b99 (diff) | |
download | rspamd-73280f3dab76021bd7f04c35448d709cbfb35537.tar.gz rspamd-73280f3dab76021bd7f04c35448d709cbfb35537.zip |
[Minor] Lua_magic: Add another spammy JS pattern
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-rw-r--r-- | lualib/lua_magic/heuristics.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index 0a0cb7471..d4918e978 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -65,6 +65,7 @@ local txt_patterns = { html = { {[[(?i)<html\b]], 32}, {[[(?i)<script\b]], 20}, -- Commonly used by spammers + {[[<script\s+type="text\/javascript">]], 31}, -- Another spammy pattern {[[(?i)<\!DOCTYPE HTML\b]], 33}, {[[(?i)<body\b]], 20}, {[[(?i)<table\b]], 20}, |