From: Michael Wallner Date: Tue, 8 Oct 2019 13:33:39 +0000 (+0200) Subject: fix empty url scheme X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;ds=sidebyside;h=f225ef52aa75fe977899cc3e3d5af448f364c81b;p=pharext%2Fpharext.org fix empty url scheme --- diff --git a/app/Controller/Github/Signin.php b/app/Controller/Github/Signin.php index 5f8b6a7..2370bc6 100644 --- a/app/Controller/Github/Signin.php +++ b/app/Controller/Github/Signin.php @@ -45,6 +45,9 @@ class Signin extends Github } } $callback = $this->app->getBaseUrl()->mod(":./github/callback"); + if (empty($callback->scheme)) { + $callback->scheme = "https"; + } $location = $this->github->getAuthUrl($callback); $this->app->redirect($location); if (($returnto = $this->app->getRequest()->getQuery("returnto"))) {