]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Trigger HTML_SHORT_LINK_IMG on any external image
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 12:57:52 +0000 (13:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 15:06:22 +0000 (16:06 +0100)
rules/html.lua

index 416ea8c74b88ffd161b4fe80045015bbb3e13374..bab6363229ef39482a3313316194ede82b344371 100644 (file)
@@ -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