Skip to content

Commit 94f1446

Browse files
authored
Merge pull request #59757 from nextcloud/fix/fix-oauth2-failure-redirect
2 parents 0172b1d + 135a812 commit 94f1446

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)