Skip to content

Commit 2f214fc

Browse files
committed
allow http scheme to not go past customscheme (helps the test suite)
1 parent 446893c commit 2f214fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

solid/lib/Controller/ServerController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ public function authorize() {
221221
}
222222

223223
$parsedOrigin = parse_url($clientRegistration['redirect_uris'][0]);
224-
if ($parsedOrigin['scheme'] != "https" && !isset($_GET['customscheme'])) {
224+
if (
225+
$parsedOrigin['scheme'] != "https" &&
226+
$parsedOrigin['scheme'] != "http" &&
227+
!isset($_GET['customscheme'])
228+
) {
225229
$result = new JSONResponse('Custom schema');
226230
$result->setStatus(302);
227231
$originalRequest = parse_url($_SERVER['REQUEST_URI']);

0 commit comments

Comments
 (0)