From: Alexander Moisseev Date: Tue, 12 Jul 2016 06:55:11 +0000 (+0300) Subject: [Minor] Fix MIME_DOUBLE_BAD_EXTENSION options X-Git-Tag: 1.3.0~100^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F718%2Fhead;p=rspamd.git [Minor] Fix MIME_DOUBLE_BAD_EXTENSION options --- diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 932225f8f..d42a0a7ee 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -88,7 +88,7 @@ local function check_mime_type(task) and not string.match(parts[#parts - 1], '^%d+$') then -- Double extension + bad extension == VERY bad task:insert_result(settings['symbol_double_extension'], badness_mult, { - parts[#parts - 1], ext + '.' .. parts[#parts - 1] .. '.' .. ext }) else -- Just bad extension