]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow hostname with SSL
authorEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 06:49:26 +0000 (22:49 -0800)
committerEvan Prodromou <evan@status.net>
Sun, 10 Jan 2010 06:49:26 +0000 (22:49 -0800)
classes/Status_network.php

index 96212c465775804105067a1f3b028939d564dbda..1f0e602cf77836de5c309dc0391d4d014c90b1a4 100644 (file)
@@ -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']);
             }