]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix isHTTPS to work correctly for Cherokee and IIS
authorCraig Andrews <candrews@integralblue.com>
Wed, 10 Nov 2010 20:53:20 +0000 (15:53 -0500)
committerCraig Andrews <candrews@integralblue.com>
Wed, 10 Nov 2010 20:53:20 +0000 (15:53 -0500)
lib/statusnet.php

index 33bf32b10e2a59f962cb06a72312f49054ff4a66..85b46bbb3fed09904a31878c5f91caa01f5fd495 100644 (file)
@@ -377,7 +377,11 @@ class StatusNet
     static function isHTTPS()
     {
         // There are some exceptions to this; add them here!
-        return !empty($_SERVER['HTTPS']);
+        if(empty($_SERVER['HTTPS'])) {
+            return false;
+        } else {
+            return $_SERVER['HTTPS'] !== 'off';
+        }
     }
 }