From f225ef52aa75fe977899cc3e3d5af448f364c81b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 8 Oct 2019 15:33:39 +0200 Subject: [PATCH] fix empty url scheme --- app/Controller/Github/Signin.php | 3 +++ 1 file changed, 3 insertions(+) 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"))) { -- 2.30.2