aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-12 11:48:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-12 11:48:50 +0100
commit72fb023c1b2869c34b4a839e0c649b29616c5604 (patch)
tree6f763a53407f14fd52885b9ada7bf14333050190 /src
parent0d2796b2cf0a6ac0a41c08fa6b044004e692f820 (diff)
downloadrspamd-72fb023c1b2869c34b4a839e0c649b29616c5604.tar.gz
rspamd-72fb023c1b2869c34b4a839e0c649b29616c5604.zip
[Minor] Fix checks logic
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/mime_types.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 32d9d62f3..b4c71e3f2 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -244,7 +244,7 @@ local function check_mime_type(task)
detected = lua_magic_types[detected_ext]
end
- if not ext or (detected_ext and ext ~= detected_ext) then
+ if detected_ext and ((not ext) or ext ~= detected_ext) then
-- Try to find extension by real content type
check_filename('detected.' .. detected_ext, detected.ct,
false, part, nil)