Skip to content

Commit a0b5986

Browse files
authored
Merge pull request #59777 from nextcloud/backport/59757/stable29
[stable29] fix(oauth2): Add missing urlencode for failure redirection
2 parents 6b0fed7 + 8a45166 commit a0b5986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/oauth2/lib/Controller/LoginRedirectorController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function authorize($client_id,
106106

107107
if ($response_type !== 'code') {
108108
//Fail
109-
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
109+
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . \urlencode($state);
110110
return new RedirectResponse($url);
111111
}
112112

0 commit comments

Comments
 (0)