summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-08 19:43:02 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-08 19:43:02 +0100
commitaa821ecc00f11b6382f6e033db18445d9e51d6b9 (patch)
tree09cb5031a461f521b3b4dee29b4393962ef4ff60 /lib
parent10505bdb0db4d14ce86815b57d2bca2ef880a581 (diff)
downloadnextcloud-server-aa821ecc00f11b6382f6e033db18445d9e51d6b9.tar.gz
nextcloud-server-aa821ecc00f11b6382f6e033db18445d9e51d6b9.zip
Trim leading or trailing slashes in file cache paths
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 9df64db7f07..bf44cf48aa7 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -699,6 +699,6 @@ class Cache {
*/
public function normalize($path) {
- return \OC_Util::normalizeUnicode($path);
+ return trim(\OC_Util::normalizeUnicode($path), '/');
}
}