]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Consider more tags when doing WHITE_ON_WHITE rule
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 13:20:58 +0000 (13:20 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 13:20:58 +0000 (13:20 +0000)
rules/html.lua

index f81fc56ef67acfe9ff8b2e4006ea27d2193504d2..67f45168eb11c19c988ac8134a3b021c2c6d7045 100644 (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