diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index 100b364ca0..f90b2738d0 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -715,7 +715,7 @@ class Filesystem { * @return string */ public static function normalizePath($path, $stripTrailingSlash = true, $isAbsolutePath = false) { - $cacheKey = $path.'-'.-$stripTrailingSlash.'-'.$isAbsolutePath; + $cacheKey = json_encode([$path, $stripTrailingSlash, $isAbsolutePath]); if(isset(self::$normalizedPathCache[$cacheKey])) { return self::$normalizedPathCache[$cacheKey];