From 82d02682135f9dc47b4b5d58c28bafc95d76f437 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Tue, 27 Jun 2023 08:31:56 +0000 Subject: [PATCH] ensure correct return type, fixes #2765 Closes #2765 Merge request studip/studip!1881 --- lib/classes/Request.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/Request.class.php b/lib/classes/Request.class.php index efdd2d6f5f4..50ab8c449c2 100644 --- a/lib/classes/Request.class.php +++ b/lib/classes/Request.class.php @@ -170,7 +170,7 @@ class Request implements ArrayAccess, IteratorAggregate '', urldecode(self::path()) ); - return parse_url($path_info, PHP_URL_PATH); + return parse_url($path_info, PHP_URL_PATH) ?? ''; } /** -- GitLab