]> source.dussan.org Git - rspamd.git/commitdiff
[Rules] Do not trigger HTML_SHORT_LINK_IMG on external images
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Apr 2021 16:54:41 +0000 (17:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Apr 2021 16:55:17 +0000 (17:55 +0100)
rules/html.lua

index cffb2f94a866e01649d51cc7920200a7e1347aea..2b2b415fd3115904adb872c0ce555ba45f165322 100644 (file)
@@ -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