From: Vsevolod Stakhov Date: Thu, 8 Apr 2021 16:54:41 +0000 (+0100) Subject: [Rules] Do not trigger HTML_SHORT_LINK_IMG on external images X-Git-Tag: 3.0~514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e9cde08299838d6cf0d05250240f972983e4fd4;p=thirdparty%2Frspamd.git [Rules] Do not trigger HTML_SHORT_LINK_IMG on external images --- diff --git a/rules/html.lua b/rules/html.lua index cffb2f94a8..2b2b415fd3 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -56,7 +56,7 @@ local function check_html_image(task, min, max) if tag then if has_anchor_parent(tag) then -- do not trigger on small and unknown size images - if i['height'] + i['width'] >= 210 or not i['embedded'] then + if i['height'] + i['width'] >= 210 and i['embedded'] then return true end end