diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-01 13:20:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-01 13:20:58 +0000 |
commit | f809803e8ed239d6f9242c9837333414e077b620 (patch) | |
tree | c99c9a3ef6f013294f62866c315e6c6ec26f20cc /rules/html.lua | |
parent | 4d352509dcd9a78abbf7c2c0a921e8bcaf069960 (diff) | |
download | rspamd-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.lua | 3 |
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 |