Bläddra i källkod

[Rules] Fix zerofont rule (partially)

tags/3.0
Vsevolod Stakhov 3 år sedan
förälder
incheckning
3e5cc9ef2d
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3
    1
      rules/html.lua

+ 3
- 1
rules/html.lua Visa fil

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

Laddar…
Avbryt
Spara