Skip to content

Commit f25bb40

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 a8a46aa commit f25bb40

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
@@ -81,7 +81,7 @@ public function authorize($client_id,
8181

8282
if ($response_type !== 'code') {
8383
//Fail
84-
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
84+
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . \urlencode($state);
8585
return new RedirectResponse($url);
8686
}
8787

0 commit comments

Comments
 (0)