Skip to content

Commit 71e1fdc

Browse files
committed
Code cleanup.
1 parent 01ab5eb commit 71e1fdc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

solid/lib/Controller/ServerController.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,10 @@ public function authorize() {
239239
}
240240
}
241241

242-
// @CHECKME: Can more than one redirect_uri could be provided for custom schemes?
243-
$parsedOrigin = parse_url($clientRegistration['redirect_uris'][0]);
242+
$parsedOrigin = parse_url($redirectUri);
244243
if (
245-
$parsedOrigin['scheme'] != "https" &&
246-
$parsedOrigin['scheme'] != "http" &&
244+
$parsedOrigin['scheme'] !== "https" &&
245+
$parsedOrigin['scheme'] !== "http" &&
247246
!isset($_GET['customscheme'])
248247
) {
249248
$result = new JSONResponse('Custom schema');

0 commit comments

Comments
 (0)