Set http_host to HTTP_HOST.

This commit is contained in:
Mark Crane
2013-02-13 07:17:24 +00:00
parent 5bceea8ebf
commit 5c25e010c2

View File

@@ -47,7 +47,7 @@ session_start();
//get the domain name
if (count($_SESSION["domains"]) > 1) {
//get the domain from the url
$domain_name = $_SERVER["http_host"];
$domain_name = $_SERVER["HTTP_HOST"];
//get the domain name from the username
$username_array = explode("@", check_str($_REQUEST["username"]));
if (count($username_array) > 1) {