Explorar o código

added patch to better detect HTTPS

Luke Ehresman %!s(int64=24) %!d(string=hai) anos
pai
achega
c1b96ccd9e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      functions/strings.php

+ 4 - 0
functions/strings.php

@@ -239,6 +239,10 @@
    
       global $PHP_SELF, $SERVER_NAME, $HTTPS, $HTTP_HOST, $SERVER_PORT;
 
+      // check for HTTPS mode (you must have 'SSLOptions +StdEnvVars'
+      // in your apache config).
+      $HTTPS=getenv(HTTPS); 
+
       // Get the path
       $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));