Merge pull request #13305 from owncloud/remove-stray-minus-and-use-json-encode

Use json_encode on string
This commit is contained in:
Robin McCorkell 2015-01-13 10:39:14 +00:00
commit 79804166f1

View file

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