summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-11-10 15:53:20 -0500
committerCraig Andrews <candrews@integralblue.com>2010-11-10 15:53:20 -0500
commitcc0038d47c3e2e2817b1ae588c65f6f0e4347742 (patch)
tree0edb8817b64e7859c9f48143b06e5abaf15add19
parenta988e2e97b4b790f3cbd9f755ebf61bf321e16f9 (diff)
Fix isHTTPS to work correctly for Cherokee and IIS
-rw-r--r--lib/statusnet.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index 33bf32b10..85b46bbb3 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -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';
+ }
}
}