]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/statusnet.php
get the subject first if you go to the feed
[quix0rs-gnu-social.git] / lib / statusnet.php
index 301994508de630401b1645f010a6e91bfc77dc92..85b46bbb3fed09904a31878c5f91caa01f5fd495 100644 (file)
@@ -377,7 +377,11 @@ class StatusNet
     static function isHTTPS()
     {
         // There are some exceptions to this; add them here!
-        return $_SERVER['HTTPS'];
+        if(empty($_SERVER['HTTPS'])) {
+            return false;
+        } else {
+            return $_SERVER['HTTPS'] !== 'off';
+        }
     }
 }