mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -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
1b0967bc79
commit
83eb32d18a
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