Skip to content

Commit

Permalink
trim slashes
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Aug 28, 2020
1 parent 7512dc2 commit 2879472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct($arguments) {
}

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

/**
Expand Down

0 comments on commit 2879472

Please sign in to comment.