From: Evan Prodromou Date: Sun, 10 Jan 2010 06:48:05 +0000 (-0800) Subject: use nickname, not sitename, in domain for SSL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8d85a1ef5966ba89ea88a6d706a066986e1dceb;p=quix0rs-gnu-social.git use nickname, not sitename, in domain for SSL --- diff --git a/classes/Status_network.php b/classes/Status_network.php index dce3e0b8f5..96212c4657 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -158,8 +158,8 @@ 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->sitename.'.'.$wildcard, $servername)) { - $sn->redirectTo('https://'.$sn->sitename.'.'.$wildcard.$_SERVER['REQUEST_URI']); + 0 != strcasecmp($sn->nickname.'.'.$wildcard, $servername)) { + $sn->redirectTo('https://'.$sn->nickname.'.'.$wildcard.$_SERVER['REQUEST_URI']); } $dbhost = (empty($sn->dbhost)) ? 'localhost' : $sn->dbhost;