Browse Source

[Feature] Consider more tags when doing WHITE_ON_WHITE rule

tags/1.4.0
Vsevolod Stakhov 7 years ago
parent
commit
f809803e8e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      rules/html.lua

+ 2
- 1
rules/html.lua View File

@@ -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

Loading…
Cancel
Save