mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 01:55:56 -04:00
fix(oauth2): Add missing urlencode for failure redirection
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a8a46aa576
commit
f25bb40dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class LoginRedirectorController extends Controller {
|
|||
|
||||
if ($response_type !== 'code') {
|
||||
//Fail
|
||||
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . $state;
|
||||
$url = $client->getRedirectUri() . '?error=unsupported_response_type&state=' . \urlencode($state);
|
||||
return new RedirectResponse($url);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue