aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-12 14:40:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-12 14:40:26 +0100
commit3e5cc9ef2dcc4fd5b62bafa7b0b83e7cf933737c (patch)
tree219bdc67c96ab476e113abd399743ba13e968df0 /rules
parentcad5c351eb35c714f512ed58d23c94f3495714a6 (diff)
downloadrspamd-3e5cc9ef2dcc4fd5b62bafa7b0b83e7cf933737c.tar.gz
rspamd-3e5cc9ef2dcc4fd5b62bafa7b0b83e7cf933737c.zip
[Rules] Fix zerofont rule (partially)
Diffstat (limited to 'rules')
-rw-r--r--rules/html.lua4
1 files changed, 3 insertions, 1 deletions
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