From: Vsevolod Stakhov Date: Sat, 5 Jan 2019 14:49:47 +0000 (+0000) Subject: [Minor] Mime_types: Allow empty filename X-Git-Tag: 1.9.0~354 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da6710da28f290bdb44b75481d0bb7efa901e967;p=rspamd.git [Minor] Mime_types: Allow empty filename --- diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index e13d535b4..e9a10bc3c 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -821,7 +821,7 @@ local full_extensions_map = { local function check_mime_type(task) local function gen_extension(fname) - local parts = lua_util.str_split(fname, '.') + local parts = lua_util.str_split(fname or '', '.') local ext = {} for n = 1, 2 do