Merge pull request #22520 from nextcloud/normalize-path-invalid-utf8
dont use `false` as cache key for non utf8 path in normalizePath
This commit is contained in:
commit
6895d97cf0
|
@ -814,7 +814,7 @@ class Filesystem {
|
|||
|
||||
$cacheKey = json_encode([$path, $stripTrailingSlash, $isAbsolutePath, $keepUnicode]);
|
||||
|
||||
if (isset(self::$normalizedPathCache[$cacheKey])) {
|
||||
if ($cacheKey && isset(self::$normalizedPathCache[$cacheKey])) {
|
||||
return self::$normalizedPathCache[$cacheKey];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue