summaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 13:20:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 13:20:58 +0000
commitf809803e8ed239d6f9242c9837333414e077b620 (patch)
treec99c9a3ef6f013294f62866c315e6c6ec26f20cc /rules/html.lua
parent4d352509dcd9a78abbf7c2c0a921e8bcaf069960 (diff)
downloadrspamd-f809803e8ed239d6f9242c9837333414e077b620.tar.gz
rspamd-f809803e8ed239d6f9242c9837333414e077b620.zip
[Feature] Consider more tags when doing WHITE_ON_WHITE rule
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua
index f81fc56ef..67f45168e 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -184,10 +184,11 @@ rspamd_config.R_WHITE_ON_WHITE = {
normal_len = p:get_length()
local hc = p:get_html() -- we get HTML context
- hc:foreach_tag('font', function(tag, len)
+ hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag, len)
local bl = tag:get_extra()
if bl then
if bl['bgcolor'] and bl['color'] then
+
local color = bl['color']
local bgcolor = bl['bgcolor']
-- Should use visual approach here some day