Skip to content

Commit 5457f4d

Browse files
authored
Merge pull request #59770 from nextcloud/backport/59757/stable31
2 parents a8a46aa + f25bb40 commit 5457f4d

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)