diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-02-20 10:45:22 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-02-20 10:45:22 +0300 |
commit | 029d2f4fa1a99728235d5abd87dca885172f2a72 (patch) | |
tree | d556a1303836f711ea73d6feae6cdfadd20a89d6 /rules/html.lua | |
parent | af66bcae904101b46244bd16da1b9ed6533dccaf (diff) | |
download | rspamd-029d2f4fa1a99728235d5abd87dca885172f2a72.tar.gz rspamd-029d2f4fa1a99728235d5abd87dca885172f2a72.zip |
Don't trigger R_EMPTY_IMAGE on image links
as they covered with `HTML_SHORT_LINK_IMG_1` rule.
It should be safe for legitimate emails with images attached since `R_EMPTY_IMAGE` and `HTML_SHORT_LINK_IMG_1` won't be triggered at the same time any more.
Diffstat (limited to 'rules/html.lua')
-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 47ff528e8..416ea8c74 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -97,7 +97,7 @@ rspamd_config.R_EMPTY_IMAGE = { if tag then local parent = tag:get_parent() if parent then - if parent:get_type() == 'a' then + if parent:get_type() ~= 'a' then return true end end |