From: Vsevolod Stakhov Date: Fri, 5 Feb 2016 12:53:52 +0000 (+0000) Subject: More sanity checks X-Git-Tag: 1.1.4~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77f8f6836b1822bce4fe53c45b558c8d478d490e;p=rspamd.git More sanity checks --- 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