We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59d8f23 commit 54c843fCopy full SHA for 54c843f
solid/lib/Controller/ServerController.php
@@ -348,8 +348,8 @@ public function logout() {
348
public function register() {
349
$clientData = file_get_contents('php://input');
350
$clientData = json_decode($clientData, true);
351
- if (!$clientData['redirect_uris']) {
352
- return new JSONResponse("Missing redirect URIs");
+ if (! isset($clientData['redirect_uris'])) {
+ return new JSONResponse("Missing redirect URIs", Http::STATUS_BAD_REQUEST);
353
}
354
$clientData['client_id_issued_at'] = time();
355
$parsedOrigin = parse_url($clientData['redirect_uris'][0]);
0 commit comments