aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 15:30:14 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 15:30:14 +0000
commit7a820f15c13ead1dc2675c42296bcf80bb424098 (patch)
treea1b969d111d6bcab6f7d0169b7338e673f446358 /rules
parenta144260321074948e012e621020515dbf448f85a (diff)
downloadrspamd-7a820f15c13ead1dc2675c42296bcf80bb424098.tar.gz
rspamd-7a820f15c13ead1dc2675c42296bcf80bb424098.zip
[Feature] Track visibility of HTML elements
Diffstat (limited to 'rules')
-rw-r--r--rules/html.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 67f45168e..a5f861b2d 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -187,7 +187,7 @@ rspamd_config.R_WHITE_ON_WHITE = {
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
+ if bl['bgcolor'] and bl['color'] and bl['visible'] then
local color = bl['color']
local bgcolor = bl['bgcolor']