Merge pull request #13305 from owncloud/remove-stray-minus-and-use-json-encode
Use json_encode on string
This commit is contained in:
commit
79804166f1
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue