From 93011203e1bc11afbea821d6bcd6af5a31d71e96 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 30 Oct 2023 17:55:37 +0100 Subject: [PATCH] revert some for testing Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Wrapper/Jail.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index 2225d7f6dc070..13e15b95d078a 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -58,11 +58,7 @@ public function __construct($arguments) { } public function getUnjailedPath($path) { - if ($this->rootPath === '') { - return $path; - } else { - return $this->rootPath . '/' . trim($path, '/'); - } + return trim(Filesystem::normalizePath($this->rootPath . '/' . $path), '/'); } /**