]> source.dussan.org Git - rspamd.git/commitdiff
SUSPICIOUS_IMAGES now trigger merely for embedded images
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Nov 2015 16:14:26 +0000 (16:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Nov 2015 16:14:26 +0000 (16:14 +0000)
rules/html.lua

index 2d52ebb521e5e7b74a9839db77f54940ea336360..cfec9d90b41c65a40e074f43be7e8a88f7e3d6cc 100644 (file)
@@ -83,7 +83,7 @@ rspamd_config.R_EMPTY_IMAGE = {
 
           if images then -- if there are images
             for _,i in ipairs(images) do -- then iterate over images in the part
-              if i['height'] + i['width'] >= 400 then -- if we have a large image
+              if i['embedded'] and i['height'] + i['width'] >= 400 then -- if we have a large image
                 return true -- add symbol
               end
             end