summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-01-13 10:39:14 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-01-13 10:39:14 +0000
commit79804166f18d1426b0aeb3aa03296ad548112585 (patch)
tree66c8d97fadb5f3a9d074ce475a5dc7d0a3e3d1a2 /lib
parentdc86cbd1e275f01840b304751a02ecbe4043c51e (diff)
parentf0ac8a278ac8a6e07f7f4efb5455c4fb87996953 (diff)
downloadnextcloud-server-79804166f18d1426b0aeb3aa03296ad548112585.tar.gz
nextcloud-server-79804166f18d1426b0aeb3aa03296ad548112585.zip
Merge pull request #13305 from owncloud/remove-stray-minus-and-use-json-encode
Use json_encode on string
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 100b364ca06..f90b2738d03 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];