commit e0c16f4: [Minor] Lua_magic: Do not treat xml as html

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Aug 13 12:49:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-08-13 13:47:08 +0100
URL: https://github.com/rspamd/rspamd/commit/e0c16f4cf4b6267d09644e1565ff6a69a916e8e2 (HEAD -> master)

[Minor] Lua_magic: Do not treat xml as html
Suggested by: @citrin

---
 lualib/lua_magic/heuristics.lua | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 929703135..d3469e2f9 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -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},


More information about the Commits mailing list