diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index 40ec3836b3a43..449a238096d5e 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -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), '/'); } /**