aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
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 2a807d07e..e1fdb6b73 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -175,7 +175,7 @@ rspamd_config.R_WHITE_ON_WHITE = {
local arg
for _,p in ipairs(tp) do -- iterate over text parts array using `ipairs`
- if p:is_html() then -- if the current part is html part
+ if p:is_html() and p:get_html() then -- if the current part is html part
normal_len = p:get_length()
local hc = p:get_html() -- we get HTML context