aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 12:53:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 13:39:37 +0000
commit77f8f6836b1822bce4fe53c45b558c8d478d490e (patch)
treec2dbaa0c2c1c2de639031eee62a61bc84bca7814
parent05c56d4edb0263227d049a92f0097e76ece657fb (diff)
downloadrspamd-77f8f6836b1822bce4fe53c45b558c8d478d490e.tar.gz
rspamd-77f8f6836b1822bce4fe53c45b558c8d478d490e.zip
More sanity checks
-rw-r--r--rules/html.lua2
1 files changed, 1 insertions, 1 deletions
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