cvs: phpweb /include layout.inc

From: Date: Wed, 18 Jun 2008 04:59:21 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1967@lists.php.net to get a copy of this message
philip Wed Jun 18 04:59:21 2008 UTC Modified files: /phpweb/include layout.inc Log: Added rel="nofollow" to manual user comments http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.286&r2=1.287&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.286 phpweb/include/layout.inc:1.287 --- phpweb/include/layout.inc:1.286 Sun May 11 16:04:12 2008 +++ phpweb/include/layout.inc Wed Jun 18 04:59:21 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.286 2008/05/11 16:04:12 bjori Exp $ */ +/* $Id: layout.inc,v 1.287 2008/06/18 04:59:21 philip Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -510,7 +510,7 @@ // Turn urls into links $text = preg_replace( '!((mailto:|(http|ftp|nntp|news):\/\/).*?)(\s|<|\)|"|\\\\|\'|$)!', - '<a href="\1" target="_blank">\1</a>\4', + '<a href="\1" rel="nofollow" target="_blank">\1</a>\4', $text );

« previous php.webmaster (#1967) next »