cvs: phpweb / results.php

From: Date: Mon, 22 Oct 2007 08:57:44 +0000
Subject: cvs: phpweb / results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-311@lists.php.net to get a copy of this message
nlopess Mon Oct 22 08:57:44 2007 UTC Modified files: /phpweb results.php Log: also disable rewriting of doc.php.net URLs http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.29&r2=1.30&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.29 phpweb/results.php:1.30 --- phpweb/results.php:1.29 Wed Oct 10 22:13:02 2007 +++ phpweb/results.php Mon Oct 22 08:57:43 2007 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.29 2007/10/10 22:13:02 nlopess Exp $ +// $Id: results.php,v 1.30 2007/10/22 08:57:43 nlopess Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -95,9 +95,9 @@ } } - // 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)(?!php)\w{2,3}\.)?(.+[^/])/?$@', '$1', $hit['Url']); + // rewrite mirrors urls (\w\w\d? or www, but not qa nor doc) + $real_url = preg_replace('@^http://(?!doc)(?!qa)\w{2,3}\.php\.net(.*)$@', '$1', $hit['Url']); + $displayurl = preg_replace('@^http://(?:(?!doc)(?!qa)(?!php)\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.webmaster (#311) next »