From: Vsevolod Stakhov Date: Fri, 5 Feb 2016 12:49:25 +0000 (+0000) Subject: Add safety guard for rule X-Git-Tag: 1.2.0~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94f5e3dcf6d79aae31a85d9cd30f5c60f83e2ab2;p=thirdparty%2Frspamd.git Add safety guard for rule --- diff --git a/rules/html.lua b/rules/html.lua index cfec9d90b4..3ceaed6728 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -29,7 +29,7 @@ local function check_html_image(task, min, max) local len = p:get_length() - if len >= min and len < max then + if hc and len >= min and len < max then local images = hc:get_images() if images then for _,i in ipairs(images) do