Skip to content

Commit

Permalink
Merge pull request #971 from joselameira/patch-1
Browse files Browse the repository at this point in the history
Fixes Access forbidden - State token missing
  • Loading branch information
julien-nc authored Oct 30, 2024
2 parents 4ff140e + 54eb45d commit c7c24b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private function getRedirectResponse(?string $redirectUrl = null): RedirectRespo
return new RedirectResponse(
$redirectUrl === null
? null
: parse_url($redirectUrl, PHP_URL_PATH)
: join('?', array_filter(parse_url($redirectUrl), fn ($k) => in_array($k, ['path', 'query']), ARRAY_FILTER_USE_KEY))
);
}

Expand Down

0 comments on commit c7c24b1

Please sign in to comment.