From: Evan Prodromou Date: Sun, 10 Jan 2010 06:49:26 +0000 (-0800) Subject: allow hostname with SSL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d723ed1ed0755a4ad30e1d3388d663f53193295;p=quix0rs-gnu-social.git allow hostname with SSL --- diff --git a/classes/Status_network.php b/classes/Status_network.php index 96212c4657..1f0e602cf7 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']); }