summaryrefslogtreecommitdiff
path: root/classes/Status_network.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-09 22:49:26 -0800
committerEvan Prodromou <evan@status.net>2010-01-09 22:49:26 -0800
commit3d723ed1ed0755a4ad30e1d3388d663f53193295 (patch)
tree9523794871890dea03691062b63277334c32e266 /classes/Status_network.php
parente8d85a1ef5966ba89ea88a6d706a066986e1dceb (diff)
allow hostname with SSL
Diffstat (limited to 'classes/Status_network.php')
-rw-r--r--classes/Status_network.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/Status_network.php b/classes/Status_network.php
index 96212c465..1f0e602cf 100644
--- a/classes/Status_network.php
+++ b/classes/Status_network.php
@@ -158,6 +158,7 @@ class Status_network extends DB_DataObject
0 != strcasecmp($sn->hostname, $servername)) {
$sn->redirectTo('http://'.$sn->hostname.$_SERVER['REQUEST_URI']);
} else if (!empty($_SERVER['HTTPS']) &&
+ 0 != strcasecmp($sn->hostname, $servername) &&
0 != strcasecmp($sn->nickname.'.'.$wildcard, $servername)) {
$sn->redirectTo('https://'.$sn->nickname.'.'.$wildcard.$_SERVER['REQUEST_URI']);
}