diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-05 18:12:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-05 18:12:49 +0000 |
commit | b27fdf29b65e24ea775bfe1471c7adc1624b7f92 (patch) | |
tree | ff1cd0c455e5494e8fffee87be5d39fef19e181e /lualib | |
parent | 3205277d11ec40a8ce6629f9c1c05fdcc0a7796f (diff) | |
download | rspamd-b27fdf29b65e24ea775bfe1471c7adc1624b7f92.tar.gz rspamd-b27fdf29b65e24ea775bfe1471c7adc1624b7f92.zip |
[Minor] Do not bother about parts with no filename
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_fuzzy.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lualib/lua_fuzzy.lua b/lualib/lua_fuzzy.lua index 30ec278c8..fadf4fa6a 100644 --- a/lualib/lua_fuzzy.lua +++ b/lualib/lua_fuzzy.lua @@ -240,7 +240,11 @@ exports.check_mime_part = function(task, part, rule_id) return true,false end - return mime_types_check(task, part, rule) + if part:get_filename() then + return mime_types_check(task, part, rule) + end + + return false,false end return exports
\ No newline at end of file |