From 5c25e010c2e0f29c8ec6441094228f31863b1862 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 13 Feb 2013 07:17:24 +0000 Subject: [PATCH] Set http_host to HTTP_HOST. --- includes/checkauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/checkauth.php b/includes/checkauth.php index fc37acf5fb..9543352b87 100644 --- a/includes/checkauth.php +++ b/includes/checkauth.php @@ -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) {