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:
parent
aad30d3b33
commit
7512dc2b34
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue