We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8807ecc + da7fa49 commit a3b1f97Copy full SHA for a3b1f97
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