diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/mime_types.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index ad5f569f6..986447285 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -213,7 +213,7 @@ local function check_mime_type(task) for _,f in ipairs(fl) do -- Strip bad characters if f['name'] then - f['name'] = f['name']:gsub('[^%s%g]', '?') + f['name'] = f['name']:gsub('[\128-\255%s%G]', '?') end if f['encrypted'] then |