cvs: phpweb / results.php

From: Date: Wed, 01 Mar 2006 11:46:37 +0000
Subject: cvs: phpweb / results.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30757@lists.php.net to get a copy of this message
nlopess Wed Mar 1 11:46:37 2006 UTC Modified files: /phpweb results.php Log: dont rewrite the qa.php.net urls http://cvs.php.net/viewcvs.cgi/phpweb/results.php?r1=1.15&r2=1.16&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.15 phpweb/results.php:1.16 --- phpweb/results.php:1.15 Wed Mar 1 02:06:53 2006 +++ phpweb/results.php Wed Mar 1 11:46:37 2006 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.15 2006/03/01 02:06:53 rasmus Exp $ +// $Id: results.php,v 1.16 2006/03/01 11:46:37 nlopess Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -65,9 +65,9 @@ } } - // rewrite mirrors urls (\w\w\d? or www) - $real_url = preg_replace('!^http://\w{2,3}\.php\.net(.*)$!', '$1', $hit['Url']); - $displayurl = preg_replace('!^http://(?:\w{2,3}\.)?(.+[^/])/?$!', '$1', $hit['Url']); + // rewrite mirrors urls (\w\w\d? or www, but not qa) + $real_url = preg_replace('@^http://(?!qa)\w{2,3}\.php\.net(.*)$@', '$1', $hit['Url']); + $displayurl = preg_replace('@^http://(?:(?!qa)\w{2,3}\.)?(.+[^/])/?$@', '$1', $hit['Url']); $type = substr($displayurl,0,strpos($displayurl,'.')); if($type=='pecl' && strstr($displayurl,"/bugs/")) $type = "peclbugs"; if($type=='pear' && strstr($displayurl,"/bugs/")) $type = "pearbugs";

« previous php.mirrors (#30757) next »