]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_magic: Do not treat xml as html
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Aug 2021 12:47:08 +0000 (13:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Aug 2021 12:47:08 +0000 (13:47 +0100)
Suggested by: @citrin

lualib/lua_magic/heuristics.lua

index 9297031351489005996940c7b608b71b96b2d40a..d3469e2f9cbf9af3576b7f5173888a01c820539b 100644 (file)
@@ -66,7 +66,6 @@ local txt_patterns = {
     {[[(?i)\s*<html\b]], 30},
     {[[(?i)\s*<script\b]], 20}, -- Commonly used by spammers
     {[[(?i)\s*<\!DOCTYPE HTML\b]], 30},
-    {[[(?i)\s*<xml\b]], 20},
     {[[(?i)\s*<body\b]], 20},
     {[[(?i)\s*<table\b]], 20},
     {[[(?i)\s*<a\b]], 10},