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:
Roeland Jago Douma 2020-09-09 21:52:36 +02:00 committed by GitHub
commit 6895d97cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}