From 83188376d165b45d46c8964039c63b1dd84df3fd Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 6 Jan 2025 11:29:53 +0100 Subject: [PATCH] Auth: Fix static URL handler uses `ILIAS_HTTP_PATH` See: https://mantis.ilias.de/view.php?id=43431 (cherry picked from commit 0c0c52a012f8d291ee8db74ea79399b575cc8901) --- components/ILIAS/Authentication/classes/StaticUrlHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/Authentication/classes/StaticUrlHandler.php b/components/ILIAS/Authentication/classes/StaticUrlHandler.php index 9d7541b1ee74..1848c6c81fde 100644 --- a/components/ILIAS/Authentication/classes/StaticUrlHandler.php +++ b/components/ILIAS/Authentication/classes/StaticUrlHandler.php @@ -48,10 +48,10 @@ public function getNamespace(): string public function handle(Request $request, Context $context, Factory $response_factory): Response { - $additional_params = join('/', $request->getAdditionalParameters() ?? []); + $additional_params = implode('/', $request->getAdditionalParameters() ?? []); return match ($additional_params) { - 'login' => $response_factory->can(rtrim(ILIAS_HTTP_PATH, '/') . '/login.php?' . http_build_query([ + 'login' => $response_factory->can('login.php?' . http_build_query([ 'cmd' => 'force_login', 'lang' => $this->language->getLangKey(), ])),