From 7512dc2b34ace9adecd792ee9494e595273d8ce1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Thu, 1 Aug 2019 14:45:50 +0200 Subject: [PATCH] Set proper root path for single file shares originating from other storages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Christoph Wurst Signed-off-by: Julius Härtl Signed-off-by: Christoph Wurst --- lib/private/Files/Storage/Wrapper/Jail.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } /** -- 2.39.5