diff options
author | Robin Appelman <robin@icewind.nl> | 2020-08-28 11:14:50 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-08-28 11:14:50 +0200 |
commit | 2879472f817031c811b33871309acd9b03458e16 (patch) | |
tree | 0b675cd2a2c0fb7bdf500ad3f8071b77f43384ad /lib | |
parent | 7512dc2b34ace9adecd792ee9494e595273d8ce1 (diff) | |
download | nextcloud-server-2879472f817031c811b33871309acd9b03458e16.tar.gz nextcloud-server-2879472f817031c811b33871309acd9b03458e16.zip |
trim slashes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Jail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index 40ec3836b3a..449a238096d 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -56,7 +56,7 @@ class Jail extends Wrapper { } public function getUnjailedPath($path) { - return Filesystem::normalizePath($this->rootPath . '/' . $path); + return trim(Filesystem::normalizePath($this->rootPath . '/' . $path), '/'); } /** |