浏览代码

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, '/'));