Fix isHTTPS to work correctly for Cherokee and IIS

This commit is contained in:
Craig Andrews 2010-11-10 15:53:20 -05:00
parent a988e2e97b
commit cc0038d47c

View File

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