FAQ
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);

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-webmaster @
categoriesphp
postedSep 24, '11 at 5:18p
activeSep 24, '11 at 5:18p
posts1
users1
websitephp.net

1 user in discussion

Ferenc Kovacs: 1 post

People

Translate

site design / logo © 2022 Grokbase