From: Craig Andrews Date: Wed, 10 Nov 2010 20:53:20 +0000 (-0500) Subject: Fix isHTTPS to work correctly for Cherokee and IIS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc0038d47c3e2e2817b1ae588c65f6f0e4347742;p=quix0rs-gnu-social.git Fix isHTTPS to work correctly for Cherokee and IIS --- diff --git a/lib/statusnet.php b/lib/statusnet.php index 33bf32b10e..85b46bbb3f 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'; + } } }