From: Robin Appelman Date: Fri, 28 Aug 2020 09:14:50 +0000 (+0200) Subject: trim slashes X-Git-Tag: v20.0.0beta3~14^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2879472f817031c811b33871309acd9b03458e16;p=nextcloud-server.git trim slashes Signed-off-by: Robin Appelman --- 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), '/'); } /**