commit d787842: [Minor] Mime_types: Fix whitelist
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jan 30 14:35:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-01-30 14:30:10 +0000
URL: https://github.com/rspamd/rspamd/commit/d787842e9e68e7cfa029667b9b04ed7c52c1e258 (HEAD -> master)
[Minor] Mime_types: Fix whitelist
---
src/plugins/lua/mime_types.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index f0cc0f2dc..c741190b3 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -847,7 +847,8 @@ local function check_mime_type(task)
fname = fname:gsub('[^%s%g]', '?')
-- Check file is in filename whitelist
- if settings.filename_whitelist:get_key(fname) then
+ if settings.filename_whitelist and
+ settings.filename_whitelist:get_key(fname) then
logger.debugm("mime_types", task, "skip checking of %s - file is in filename whitelist",
fname)
return
More information about the Commits
mailing list