From a4dc7375f14400df8ec4ed3c2e9aabad27db36f0 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Tue, 15 Jun 2021 18:06:19 +0200 Subject: [PATCH] Util: Always sanitize filenames on Android Fix #7837 --- frontend/util.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/util.lua b/frontend/util.lua index f6d54c8ee..47c66d238 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -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