Theme : HTTPS support with Cherokee or IIS

Theme : HTTPS support with Cherokee or IIS

Issue ID:2875
Issue Category:bug
Component:core
Priority:normal
Status:fixed
Assigned:candrews
Version:0.9
Milestone:0.9
Keywords:HTTPS ssl $_SERVER cherokee iis

see http://forum.status.net/discussion/comment/5589/#Comment_5589

StatusNet 0.9.6 has a problem with Cherokee and IIS for SSL support.

$_SERVER['HTTPS'] is returning 'off' with Cherokee or IIS (see http://www.php.net/manual/en/reserved.variables.server.php).

So, there is a problem with StatusNet::isHTTPS() which is returning true.

These lines resolve my problem :
---
static function isHTTPS()
{
// cas de IIS/cherokee
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'off' )
{
return false;
}
else {
return !empty($_SERVER['HTTPS']);
}
}
---

Updates

#1

Assigned to:Anonymous» candrews
Status:active» fixed

Thank you for this report - and even a solution!

fixed: cc0038d47c3e2e2817b1ae588c65f6f0e4347742

Login or Register to modify this issue, or to receive updates by email.

You can also subscribe to the RSS feed for updates to this issue.