aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-31 15:34:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-31 15:34:33 +0000
commitdc077ced81594d4e8d36debc823fdd3e1129d8b2 (patch)
treea7111e3c49c27741c36df3fca8d2c98e77795a71 /lualib
parent04a1060f4511dca6b1d8d28f671cb2d8923e04df (diff)
downloadrspamd-dc077ced81594d4e8d36debc823fdd3e1129d8b2.tar.gz
rspamd-dc077ced81594d4e8d36debc823fdd3e1129d8b2.zip
[Minor] Antivirus: Scan all attachments if required
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_scanners/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_scanners/common.lua b/lualib/lua_scanners/common.lua
index e9a6bc964..117945dd4 100644
--- a/lualib/lua_scanners/common.lua
+++ b/lualib/lua_scanners/common.lua
@@ -431,7 +431,7 @@ local function check_parts_match(task, rule)
-- We know what to scan!
local magic = lua_magic_types[detected_ext] or {}
- if magic.av_check ~= false then
+ if p:is_attachment() or magic.av_check ~= false then
extension_check = true
end
else