Util: Always sanitize filenames on Android

Fix #7837
This commit is contained in:
NiLuJe
2021-06-15 18:06:19 +02:00
committed by Frans de Jonge
parent 522aa49e63
commit a4dc7375f1

View File

@@ -855,7 +855,8 @@ function util.getSafeFilename(str, path, limit, limit_ext)
limit = limit or 240
limit_ext = limit_ext or 10
if path then
-- Always assume the worst on Android (#7837)
if path and not BaseUtil.isAndroid() then
local file_system = util.getFilesystemType(path)
if file_system ~= "vfat" and file_system ~= "fuse.fsp" then
replaceFunc = replaceSlashChar