From: Julius Härtl Date: Thu, 1 Aug 2019 12:45:50 +0000 (+0200) Subject: Set proper root path for single file shares originating from other storages X-Git-Tag: v20.0.0beta3~14^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7512dc2b34ace9adecd792ee9494e595273d8ce1;p=nextcloud-server.git Set proper root path for single file shares originating from other storages Co-authored-by: Christoph Wurst Signed-off-by: Julius Härtl Signed-off-by: Christoph Wurst --- diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index 7350c104ba8..40ec3836b3a 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -56,11 +56,7 @@ class Jail extends Wrapper { } public function getUnjailedPath($path) { - if ($path === '') { - return $this->rootPath; - } else { - return Filesystem::normalizePath($this->rootPath . '/' . $path); - } + return Filesystem::normalizePath($this->rootPath . '/' . $path); } /**