diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-08-01 14:45:50 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-08-28 10:50:15 +0200 |
commit | 7512dc2b34ace9adecd792ee9494e595273d8ce1 (patch) | |
tree | d6c529d7fb74ef5b19168afa0fcdaabca395bb43 /lib/private/Files | |
parent | aad30d3b33ea138a1d436405e25f285f7eda8436 (diff) | |
download | nextcloud-server-7512dc2b34ace9adecd792ee9494e595273d8ce1.tar.gz nextcloud-server-7512dc2b34ace9adecd792ee9494e595273d8ce1.zip |
Set proper root path for single file shares originating from other storages
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Jail.php | 6 |
1 files changed, 1 insertions, 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); } /** |