From: Vsevolod Stakhov Date: Sat, 12 Jun 2021 13:40:26 +0000 (+0100) Subject: [Rules] Fix zerofont rule (partially) X-Git-Tag: 3.0~311 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3e5cc9ef2dcc4fd5b62bafa7b0b83e7cf933737c;p=rspamd.git [Rules] Fix zerofont rule (partially) --- diff --git a/rules/html.lua b/rules/html.lua index 2929cb15d..83f53a4dc 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -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