cvs: phpweb /include site.inc

From: Date: Wed, 08 Jan 2003 09:05:32 +0000
Subject: cvs: phpweb /include site.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14841@lists.php.net to get a copy of this message
goba Wed Jan 8 04:05:32 2003 EDT Modified files: /phpweb/include site.inc Log: Use preg for consistency Index: phpweb/include/site.inc diff -u phpweb/include/site.inc:1.237 phpweb/include/site.inc:1.238 --- phpweb/include/site.inc:1.237 Wed Jan 8 03:06:06 2003 +++ phpweb/include/site.inc Wed Jan 8 04:05:31 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: site.inc,v 1.237 2003/01/08 08:06:06 goba Exp $ +// $Id: site.inc,v 1.238 2003/01/08 09:05:31 goba Exp $ // Define $MIRRORS array, and some constants include_once 'mirrors.inc'; @@ -158,7 +158,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://' . ereg_replace("^www\\.", "", $_SERVER["HTTP_HOST"]) . '/'; + $MYSITE = 'http://' . preg_replace("!^www\\.!", "", $_SERVER["HTTP_HOST"]) . '/'; // If the mirror is not registered with this name, provide defaults // (no country code, no search, no stats, English default language ...)

« previous php.mirrors (#14841) next »