cvs: php-bugs-web /include functions.inc
| From: | Derick Rethans | Date: | Sat, 22 Jan 2005 16:59:59 +0000 |
| Subject: | cvs: php-bugs-web /include functions.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-27307@lists.php.net to get a copy of this message | ||
derick Sat Jan 22 11:59:59 2005 EDT
Modified files:
/php-bugs-web/include functions.inc
Log:
- Mark our links as no follow.
http://cvs.php.net/diff.php/php-bugs-web/include/functions.inc?r1=1.141&r2=1.142&ty=u
Index: php-bugs-web/include/functions.inc
diff -u php-bugs-web/include/functions.inc:1.141 php-bugs-web/include/functions.inc:1.142
--- php-bugs-web/include/functions.inc:1.141 Fri Jan 7 14:43:34 2005
+++ php-bugs-web/include/functions.inc Sat Jan 22 11:59:58 2005
@@ -435,7 +435,7 @@
function addlinks($text)
{
$text = htmlspecialchars($text);
- $text =
preg_replace("/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\\.\\s|$)/i","<a
href=\"\\1\">\\1</a>\\3",$text);
+ $text =
preg_replace("/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\\.\\s|$)/i","<a
rel=\"nofollow\" href=\"\\1\">\\1</a>\\3",$text);
# what the heck is this for?
$text = preg_replace("/[.,]?-=-\"/", '"', $text);
return $text;