Skip to content

Commit

Permalink
Auth: Fix static URL handler uses ILIAS_HTTP_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Jan 6, 2025
1 parent b7f8ac9 commit 0c0c52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ILIAS/Authentication/classes/StaticUrlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
])),
Expand Down

0 comments on commit 0c0c52a

Please sign in to comment.