noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 322/323: Fix : not reliable


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 322/323: Fix : not reliable
Date: Wed, 14 Mar 2018 17:39:15 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit e9a89cf078789a7a9be129c8700dd397aaf56a19
Author: Dany De Bontridder <address@hidden>
Date:   Mon Mar 12 23:18:29 2018 +0100

    Fix :  not reliable
---
 include/constant.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/constant.php b/include/constant.php
index afa6e05..cc46c60 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -317,7 +317,11 @@ define ("PINDG","&#xe809;");
 // Url of NOALYSS (http://...) 
 // 
 if ( ! defined ("NOALYSS_URL")) {
-    $base=$_SERVER['REQUEST_SCHEME'].'://'.
+    $protocol="http";
+    if ( isset ($_SERVER['REQUEST_SCHEME'] ))  {
+        $protocol=$_SERVER['REQUEST_SCHEME'];
+    }
+    $base=$protocol.'://'.
             $_SERVER['HTTP_HOST'].
             ":".$_SERVER['SERVER_PORT'].
             dirname($_SERVER['PHP_SELF']);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]