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>
This commit is contained in:
Julius Härtl 2019-08-01 14:45:50 +02:00 committed by Robin Appelman
parent aad30d3b33
commit 7512dc2b34
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 1 additions and 5 deletions

View 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);
}
/**