aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2019-04-17 10:43:22 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2019-04-17 10:43:22 +0300
commitf24be0299381702d7fa5ad4695f1c5debfad78a9 (patch)
treefafbf4713736ebb6220faf1bed1484e2761934e7 /src
parentdbcc1c94520c55afcaa4a623a894c8e68c5cbb61 (diff)
downloadrspamd-f24be0299381702d7fa5ad4695f1c5debfad78a9.tar.gz
rspamd-f24be0299381702d7fa5ad4695f1c5debfad78a9.zip
[Minor] Avoid comparing string with boolean
when CT is not found
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 e621b5666..04655beb0 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -1090,7 +1090,7 @@ local function check_mime_type(task)
local detected_different = false
if detected_ct and detected_ct ~= ct then
local v_detected = map:get_key(detected_ct)
- if v_detected > v then v = v_detected end
+ if not v or v_detected and v_detected > v then v = v_detected end
detected_different = true
end
if v then