aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
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 12:53:52 +0000
commitb775598428553aa795436028e81b22d8d206248b (patch)
tree7bf4c047d6fd6c8be89d385902935245f86251df /rules/html.lua
parent94f5e3dcf6d79aae31a85d9cd30f5c60f83e2ab2 (diff)
downloadrspamd-b775598428553aa795436028e81b22d8d206248b.tar.gz
rspamd-b775598428553aa795436028e81b22d8d206248b.zip
More sanity checks
Diffstat (limited to 'rules/html.lua')
-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