diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-12 11:48:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-12 11:48:50 +0100 |
commit | 72fb023c1b2869c34b4a839e0c649b29616c5604 (patch) | |
tree | 6f763a53407f14fd52885b9ada7bf14333050190 /src | |
parent | 0d2796b2cf0a6ac0a41c08fa6b044004e692f820 (diff) | |
download | rspamd-72fb023c1b2869c34b4a839e0c649b29616c5604.tar.gz rspamd-72fb023c1b2869c34b4a839e0c649b29616c5604.zip |
[Minor] Fix checks logic
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/mime_types.lua | 2 |
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) |