From: Vincent Petry Date: Fri, 9 Jan 2015 09:18:32 +0000 (+0100) Subject: Fix cache jail to not duplicate slashes X-Git-Tag: v8.0.0alpha2~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=888ce4d4f9272016a033c859850808f3e1643da9;p=nextcloud-server.git Fix cache jail to not duplicate slashes --- 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, '/'); } }