cvs: phpweb /include site.inc
| From: | Jani Taskinen | Date: | Tue, 10 May 2005 09:03:54 +0000 |
| Subject: | cvs: phpweb /include site.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-28123@lists.php.net to get a copy of this message | ||
sniper Tue May 10 05:03:54 2005 EDT
Modified files:
/phpweb/include site.inc
Log:
HTTP_HOST -> SERVER_NAME (they said it is safe..)
http://cvs.php.net/diff.php/phpweb/include/site.inc?r1=1.253&r2=1.254&ty=u
Index: phpweb/include/site.inc
diff -u phpweb/include/site.inc:1.253 phpweb/include/site.inc:1.254
--- phpweb/include/site.inc:1.253 Sat Aug 16 07:58:34 2003
+++ phpweb/include/site.inc Tue May 10 05:03:53 2005
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: site.inc,v 1.253 2003/08/16 11:58:34 goba Exp $
+// $Id: site.inc,v 1.254 2005/05/10 09:03:53 sniper Exp $
// Define $MIRRORS array, and some constants
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/mirrors.inc';
@@ -185,7 +185,7 @@
// Try the hostname [without www]. In case the main name above is
// not found, we try to find the mirror with the name provided by
// the browser (in the Host HTTP header).
- $MYSITE = 'http://' . preg_replace("!^www\\.!",
"", $_SERVER["HTTP_HOST"]) . '/';
+ $MYSITE = 'http://' . preg_replace("!^www\\.!",
"", $_SERVER["SERVER_NAME"]) . '/';
// If the mirror is not registered with this name, provide defaults
// (no country code, no search, no stats, English default language ...)