diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-08 17:54:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-08 17:55:17 +0100 |
commit | 8e9cde08299838d6cf0d05250240f972983e4fd4 (patch) | |
tree | 110daf1d05e477ab64f7f2a17ee124b71dfe37d6 /rules | |
parent | 55cf68e5c7018596c1f1c4eef46e7fc1e41d21cc (diff) | |
download | rspamd-8e9cde08299838d6cf0d05250240f972983e4fd4.tar.gz rspamd-8e9cde08299838d6cf0d05250240f972983e4fd4.zip |
[Rules] Do not trigger HTML_SHORT_LINK_IMG on external images
Diffstat (limited to 'rules')
-rw-r--r-- | rules/html.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua index cffb2f94a..2b2b415fd 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 |