]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use nickname, not sitename, in domain for SSL
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 06:48:05 +0000 (22:48 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 06:48:05 +0000 (22:48 -0800)
classes/Status_network.php

index dce3e0b8f5f0b9750a91a5551e12453e4dc688d8..96212c465775804105067a1f3b028939d564dbda 100644 (file)
@@ -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;