]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set proper root path for single file shares originating from other storages
authorJulius Härtl <jus@bitgrid.net>
Thu, 1 Aug 2019 12:45:50 +0000 (14:45 +0200)
committerRobin Appelman <robin@icewind.nl>
Fri, 28 Aug 2020 08:50:15 +0000 (10:50 +0200)
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>
lib/private/Files/Storage/Wrapper/Jail.php

index 7350c104ba85543f3539c5de2d13569d379af453..40ec3836b3a43248a2cd59af91e70447825cb60d 100644 (file)
@@ -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);
        }
 
        /**