added patch to better detect HTTPS
[squirrelmail.git] / functions / strings.php
index 1aa0948800f00ea626ac629c7d08b9c1bb673644..775e3e1561b1f4f0b7a7779ca46c032b33d1b719 100644 (file)
    
       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, '/'));