Fix cache jail to not duplicate slashes

This commit is contained in:
Vincent Petry 2015-01-09 10:18:32 +01:00
parent aa821ecc00
commit 888ce4d4f9
1 changed files with 1 additions and 1 deletions

View File

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