Skip to content

Commit 8a45166

Browse files
come-ncbackportbot[bot]
authored andcommitted
fix(oauth2): Add missing urlencode for failure redirection
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 6b0fed7 commit 8a45166

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)