From cc0038d47c3e2e2817b1ae588c65f6f0e4347742 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Wed, 10 Nov 2010 15:53:20 -0500 Subject: [PATCH] Fix isHTTPS to work correctly for Cherokee and IIS --- lib/statusnet.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'; + } } } -- 2.39.5