From fd24c961ae6ed53edc14e34991a8e5f603307596 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Aug 2016 15:56:29 +0100 Subject: [Fix] Further fixes for white on white rule --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules') 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 -- cgit v1.2.3