svn: /web/php-bugs/trunk/include/ functions.php

From: Date: Sat, 24 Sep 2011 17:18:43 +0000
Subject: svn: /web/php-bugs/trunk/include/ functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-12253@lists.php.net to get a copy of this message
tyrael Sat, 24 Sep 2011 17:18:43 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=317250 Log: maybe we will get less spam if rel="nofollow" is added to the links Changed paths: U web/php-bugs/trunk/include/functions.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2011-09-24 17:17:17 UTC (rev 317249) +++ web/php-bugs/trunk/include/functions.php 2011-09-24 17:18:43 UTC (rev 317250) @@ -1152,7 +1152,7 @@ function addlinks($text) { $text = htmlspecialchars($text); - $text = preg_replace("/((mailto|http|https|ftp|nntp|news):.+?)(&gt;|\\s|\\)|\\.\\s|$)/i","<a href=\"\\1\">\\1</a>\\3",$text); + $text = preg_replace("/((mailto|http|https|ftp|nntp|news):.+?)(&gt;|\\s|\\)|\\.\\s|$)/i","<a href=\"\\1\" rel=\"nofollow\">\\1</a>\\3",$text); # what the heck is this for? $text = preg_replace("/[.,]?-=-\"/", '"', $text);

« previous php.webmaster (#12253) next »