From: Vsevolod Stakhov Date: Fri, 5 Aug 2016 12:57:52 +0000 (+0100) Subject: [Fix] Trigger HTML_SHORT_LINK_IMG on any external image X-Git-Tag: 1.3.2~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37b9edfcf587e3d7986f08d83c623ab7950a31f6;p=rspamd.git [Fix] Trigger HTML_SHORT_LINK_IMG on any external image --- diff --git a/rules/html.lua b/rules/html.lua index 416ea8c74..bab636322 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -39,7 +39,7 @@ local function check_html_image(task, min, max) if parent then if parent:get_type() == 'a' then -- do not trigger on small and unknown size images - if i['height'] + i['width'] >= 210 then + if i['height'] + i['width'] >= 210 or not i['embedded'] then return true end end