Skip to content

Commit ae51422

Browse files
authored
Merge pull request #59776 from nextcloud/backport/59757/stable30
2 parents 08d012c + fcb4503 commit ae51422

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

9090
if ($response_type !== 'code') {
9191
//Fail
92-
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
92+
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . \urlencode($state);
9393
return new RedirectResponse($url);
9494
}
9595

0 commit comments

Comments
 (0)