Skip to content

Commit eb4a30a

Browse files
Merge pull request #59772 from nextcloud/backport/59757/stable33
2 parents ef5757e + 3d18830 commit eb4a30a

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)