commit dc077ce: [Minor] Antivirus: Scan all attachments if required
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Oct 31 16:00:08 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-31 15:34:33 +0000
URL: https://github.com/rspamd/rspamd/commit/dc077ced81594d4e8d36debc823fdd3e1129d8b2
[Minor] Antivirus: Scan all attachments if required
---
lualib/lua_scanners/common.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Commits
mailing list