]> source.dussan.org Git - nextcloud-server.git/commit
dont use `false` as cache key for non utf8 path in normalizePath 22520/head
authorRobin Appelman <robin@icewind.nl>
Mon, 31 Aug 2020 15:29:36 +0000 (17:29 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 31 Aug 2020 15:29:36 +0000 (17:29 +0200)
commita792a51dca5fe55f3c05483e779958e4d56cdb9a
treed690871372bc9067d0065bd99b09c770caae9196
parent6b9b88f8b7643c946faf495a432a00a5c64a0378
dont use `false` as cache key for non utf8 path in normalizePath

since `json_encode` returns `false` if it's input isn't utf8, all non utf8 paths passed to normalizePath will currently return the same cached result.

Fixing this makes working with non utf8 storages a *little* bit more possible for apps

Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Filesystem.php