fix of the vhost problem
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jan 2002 21:36:34 +0000 (21:36 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jan 2002 21:36:34 +0000 (21:36 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2167 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 23f1b18..d39df3e 100644 (file)
@@ -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, ':')) {