]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix cache jail to not duplicate slashes
authorVincent Petry <pvince81@owncloud.com>
Fri, 9 Jan 2015 09:18:32 +0000 (10:18 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 9 Jan 2015 09:18:32 +0000 (10:18 +0100)
lib/private/files/cache/wrapper/cachejail.php

index f4ffc67d76a4196a0c0e34221a9d62a34acdf39a..3f7ea66ea1b60f50b473d498a3589c0e9936bf52 100644 (file)
@@ -30,7 +30,7 @@ class CacheJail extends CacheWrapper {
                if ($path === '') {
                        return $this->root;
                } else {
-                       return $this->root . '/' . $path;
+                       return $this->root . '/' . ltrim($path, '/');
                }
        }