diff options
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}, |