]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_magic: Add another spammy JS pattern
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Aug 2021 12:24:53 +0000 (13:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Aug 2021 12:24:53 +0000 (13:24 +0100)
lualib/lua_magic/heuristics.lua

index 0a0cb747154745f0924587e2dff6af16c0d14264..d4918e978bd270528dde5440e6c8973486a74e9c 100644 (file)
@@ -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},