Merge pull request #59771 from nextcloud/backport/59757/stable32

This commit is contained in:
Kate 2026-04-21 13:44:36 +02:00 committed by GitHub
commit eda5147e9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ class LoginRedirectorController extends Controller {
if ($response_type !== 'code') {
//Fail
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . \urlencode($state);
return new RedirectResponse($url);
}