From b775598428553aa795436028e81b22d8d206248b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Feb 2016 12:53:52 +0000 Subject: More sanity checks --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/html.lua b/rules/html.lua index 3ceaed672..c2635a8d0 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -78,7 +78,7 @@ rspamd_config.R_EMPTY_IMAGE = { local hc = p:get_html() -- we get HTML context local len = p:get_length() -- and part's length - if len < 50 then -- if we have a part that has less than 50 bytes of text + if hc and len < 50 then -- if we have a part that has less than 50 bytes of text local images = hc:get_images() -- then we check for HTML images if images then -- if there are images -- cgit v1.2.3