]> source.dussan.org Git - rspamd.git/commitdiff
[Rules] Fix zerofont rule (partially)
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Jun 2021 13:40:26 +0000 (14:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Jun 2021 13:40:26 +0000 (14:40 +0100)
rules/html.lua

index 2929cb15d0ab5a7f3816af90e1f25bf3535d74d8..83f53a4dc84896502ee44a490b384df9466f338a 100644 (file)
@@ -197,7 +197,9 @@ local vis_check_id = rspamd_config:register_symbol{
         local hc = p:get_html() -- we get HTML context
 
         hc:foreach_tag({'font', 'span', 'div', 'p', 'td'}, function(tag, clen, is_leaf)
-          local bl = tag:get_extra()
+          local bl = tag:get_style()
+          local rspamd_logger = require "rspamd_logger"
+          rspamd_logger.errx('hui: %s', bl)
           if bl then
             if not bl['visible'] and is_leaf then
               invisible_blocks = invisible_blocks + 1