cvs: phpweb / results.php
| From: | Nuno Lopes | Date: | Wed, 10 Oct 2007 22:13:02 +0000 |
| Subject: | cvs: phpweb / results.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-220@lists.php.net to get a copy of this message | ||
nlopess Wed Oct 10 22:13:02 2007 UTC
Modified files:
/phpweb results.php
Log:
2nd shot at trying to fix bug #42896
http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.28&r2=1.29&diff_format=u
Index: phpweb/results.php
diff -u phpweb/results.php:1.28 phpweb/results.php:1.29
--- phpweb/results.php:1.28 Tue Oct 9 21:21:07 2007
+++ phpweb/results.php Wed Oct 10 22:13:02 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: results.php,v 1.28 2007/10/09 21:21:07 nlopess Exp $
+// $Id: results.php,v 1.29 2007/10/10 22:13:02 nlopess Exp $
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
#include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
@@ -97,7 +97,7 @@
// 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}\.)?(php\.net.+[^/])/?$@', '$1',
$hit['Url']);
+ $displayurl = preg_replace('@^http://(?:(?!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";