Browse Source

[Minor] Do not bother about parts with no filename

tags/1.8.2
Vsevolod Stakhov 5 years ago
parent
commit
b27fdf29b6
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lualib/lua_fuzzy.lua

+ 5
- 1
lualib/lua_fuzzy.lua View File

@@ -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

Loading…
Cancel
Save