fix empty url scheme
[pharext/pharext.org] / app / Controller / Github / Signin.php
index 5f8b6a7709944527d477e9a75b0077796db97875..2370bc6840e5ce21bbb902d61d8827c2424b3ed0 100644 (file)
@@ -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"))) {