summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-08-28 11:14:50 +0200
committerRobin Appelman <robin@icewind.nl>2020-08-28 11:14:50 +0200
commit2879472f817031c811b33871309acd9b03458e16 (patch)
tree0b675cd2a2c0fb7bdf500ad3f8071b77f43384ad /lib
parent7512dc2b34ace9adecd792ee9494e595273d8ce1 (diff)
downloadnextcloud-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.php2
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), '/');
}
/**