diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/wrapper/cachejail.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/files/cache/wrapper/cachejail.php b/lib/private/files/cache/wrapper/cachejail.php index b889ace5c7d..82f62eb7fba 100644 --- a/lib/private/files/cache/wrapper/cachejail.php +++ b/lib/private/files/cache/wrapper/cachejail.php @@ -58,6 +58,11 @@ class CacheJail extends CacheWrapper { * @return null|string the jailed path or null if the path is outside the jail */ protected function getJailedPath($path) { + + if ($this->root === '') { + return $path; + } + $rootLength = strlen($this->root) + 1; if ($path === $this->root) { return ''; |