From 4dc9a365c0fd70cbb0e66bb5da3a5c90a52d8d23 Mon Sep 17 00:00:00 2001 From: teepe Date: Fri, 18 Jan 2002 21:36:34 +0000 Subject: [PATCH] fix of the vhost problem git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2167 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/strings.php b/functions/strings.php index 23f1b181..d39df3e5 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -300,7 +300,11 @@ function get_location () { $host = $HTTP_HOST; } else if (isset($SERVER_NAME) && !empty($SERVER_NAME)) { $host = $SERVER_NAME; + } else if (isset($HTTP_SERVER_VARS['SERVER_NAME']) && + !empty($HTTP_SERVER_VARS['SERVER_NAME'])) { + $host = $HTTP_SERVER_VARS['SERVER_NAME']; } + $port = ''; if (! strstr($host, ':')) { -- 2.25.1