]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Antivirus: Scan all attachments if required
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Oct 2019 15:34:33 +0000 (15:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Oct 2019 15:34:33 +0000 (15:34 +0000)
lualib/lua_scanners/common.lua

index e9a6bc964f2d91eeca2e532d6bc4461084b7c743..117945dd48bb312d40fac462f6ca549fe721593d 100644 (file)
@@ -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