Skip to content

Commit fdf63bc

Browse files
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>
1 parent 6426067 commit fdf63bc

File tree

1 file changed

+1
-5
lines changed
  • lib/private/Files/Storage/Wrapper

1 file changed

+1
-5
lines changed

lib/private/Files/Storage/Wrapper/Jail.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ public function __construct($arguments) {
5656
}
5757

5858
public function getUnjailedPath($path) {
59-
if ($path === '') {
60-
return $this->rootPath;
61-
} else {
62-
return Filesystem::normalizePath($this->rootPath . '/' . $path);
63-
}
59+
return Filesystem::normalizePath($this->rootPath . '/' . $path);
6460
}
6561

6662
/**

0 commit comments

Comments
 (0)