From: Evan Prodromou Date: Sun, 10 Jan 2010 00:31:25 +0000 (-0800) Subject: correct superglobal variable name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=deb5ee61542d01d90c0b0a462d5be2fdf5b876bb;p=quix0rs-gnu-social.git correct superglobal variable name --- diff --git a/classes/Status_network.php b/classes/Status_network.php index 8dff879dfe..dce3e0b8f5 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -154,10 +154,10 @@ class Status_network extends DB_DataObject // Redirect to the right URL if (!empty($sn->hostname) && - empty($SERVER['HTTPS']) && + empty($_SERVER['HTTPS']) && 0 != strcasecmp($sn->hostname, $servername)) { $sn->redirectTo('http://'.$sn->hostname.$_SERVER['REQUEST_URI']); - } else if (!empty($SERVER['HTTPS']) && + } else if (!empty($_SERVER['HTTPS']) && 0 != strcasecmp($sn->sitename.'.'.$wildcard, $servername)) { $sn->redirectTo('https://'.$sn->sitename.'.'.$wildcard.$_SERVER['REQUEST_URI']); }