summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-09 10:18:32 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-09 10:18:32 +0100
commit888ce4d4f9272016a033c859850808f3e1643da9 (patch)
treeb4ea582091a5501b029f60816d513f02de618189 /lib/private/files
parentaa821ecc00f11b6382f6e033db18445d9e51d6b9 (diff)
downloadnextcloud-server-888ce4d4f9272016a033c859850808f3e1643da9.tar.gz
nextcloud-server-888ce4d4f9272016a033c859850808f3e1643da9.zip
Fix cache jail to not duplicate slashes
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/cache/wrapper/cachejail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/wrapper/cachejail.php b/lib/private/files/cache/wrapper/cachejail.php
index f4ffc67d76a..3f7ea66ea1b 100644
--- a/lib/private/files/cache/wrapper/cachejail.php
+++ b/lib/private/files/cache/wrapper/cachejail.php
@@ -30,7 +30,7 @@ class CacheJail extends CacheWrapper {
if ($path === '') {
return $this->root;
} else {
- return $this->root . '/' . $path;
+ return $this->root . '/' . ltrim($path, '/');
}
}