aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-05 13:57:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-05 16:06:22 +0100
commit37b9edfcf587e3d7986f08d83c623ab7950a31f6 (patch)
tree2a5a714427158fc2e7091e88f05a694477dde0cf /rules/html.lua
parent20ead15cb2b3fa3eed9c59225f520d7fd5365bb8 (diff)
downloadrspamd-37b9edfcf587e3d7986f08d83c623ab7950a31f6.tar.gz
rspamd-37b9edfcf587e3d7986f08d83c623ab7950a31f6.zip
[Fix] Trigger HTML_SHORT_LINK_IMG on any external image
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua2
1 files changed, 1 insertions, 1 deletions
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