소스 검색

[Feature] Consider more tags when doing WHITE_ON_WHITE rule

tags/1.4.0
Vsevolod Stakhov 7 년 전
부모
커밋
f809803e8e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      rules/html.lua

+ 2
- 1
rules/html.lua 파일 보기

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

Loading…
취소
저장