Skip to content

Commit

Permalink
Set proper root path for single file shares originating from other st…
Browse files Browse the repository at this point in the history
…orages

Co-authored-by: Christoph Wurst <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
juliusknorr and ChristophWurst committed Dec 13, 2019
1 parent 6426067 commit fdf63bc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/private/Files/Storage/Wrapper/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ public function __construct($arguments) {
}

public function getUnjailedPath($path) {
if ($path === '') {
return $this->rootPath;
} else {
return Filesystem::normalizePath($this->rootPath . '/' . $path);
}
return Filesystem::normalizePath($this->rootPath . '/' . $path);
}

/**
Expand Down

0 comments on commit fdf63bc

Please sign in to comment.