diff Options.inc @ 119:df158368051e

PHP7 compatibility and support for http and https
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Thu, 28 Dec 2017 18:36:45 +0100
parents d98e315308cd
children 14959382c901
line wrap: on
line diff
--- a/Options.inc	Thu Dec 28 18:33:17 2017 +0100
+++ b/Options.inc	Thu Dec 28 18:36:45 2017 +0100
@@ -82,7 +82,7 @@
     $base = ($l) ? substr($request, 0 , $l) : $request;
     $base = rtrim($base, '/');
 
-    return "http://" . $_SERVER['HTTP_HOST'] . $base;
+    return "//" . $_SERVER['HTTP_HOST'] . $base;
   }
 
   /**