Преглед на файлове

added patch to better detect HTTPS

Luke Ehresman преди 24 години
родител
ревизия
c1b96ccd9e
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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, '/'));