aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-24 19:14:22 +0100
committerGitHub <noreply@github.com>2017-10-24 19:14:22 +0100
commit6c25c69781356431bbcc63457d9f3c388a311538 (patch)
treed5208c721158dc2b6d123b27ea0e9bf94ef3fa84
parent21c63adb079255baa00625622307457c31fad99d (diff)
parentf0dd9f2bde2b515e4991dd4071276300bd8c4b03 (diff)
downloadrspamd-6c25c69781356431bbcc63457d9f3c388a311538.tar.gz
rspamd-6c25c69781356431bbcc63457d9f3c388a311538.zip
Merge pull request #1879 from moisseev/mime-types
[Fix] Fix bad extension check
-rw-r--r--src/plugins/lua/mime_types.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 986447285..3ca8c15a8 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -122,12 +122,12 @@ local function check_mime_type(task)
task:insert_result(settings['symbol_double_extension'], badness_mult, {
'.' .. ext2 .. '.' .. ext
})
+ return
end
- else
- if badness_mult then
- -- Just bad extension
- task:insert_result(settings['symbol_bad_extension'], badness_mult, ext)
- end
+ end
+ if badness_mult then
+ -- Just bad extension
+ task:insert_result(settings['symbol_bad_extension'], badness_mult, ext)
end
end