diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index d08312ad78963..4f4e18e1f90b2 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -2537,7 +2537,8 @@
\is_array($params)
-
+
+ \Sabre\HTTP\decodePath($pathInfo)
\Sabre\Uri\split($scriptName)
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index f896b825f2d82..010d889070e19 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -784,17 +784,7 @@ public function getRawPathInfo(): string {
*/
public function getPathInfo() {
$pathInfo = $this->getRawPathInfo();
- // following is taken from \Sabre\HTTP\URLUtil::decodePathSegment
- $pathInfo = rawurldecode($pathInfo);
- $encoding = mb_detect_encoding($pathInfo, ['UTF-8', 'ISO-8859-1']);
-
- switch ($encoding) {
- case 'ISO-8859-1':
- $pathInfo = utf8_encode($pathInfo);
- }
- // end copy
-
- return $pathInfo;
+ return \Sabre\HTTP\decodePath($pathInfo);
}
/**