1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Added rel="nofollow" to manual user comments

This commit is contained in:
Philip Olson
2008-06-18 04:59:21 +00:00
parent 43b95e7665
commit 2f4e97fc6d

View File

@@ -510,7 +510,7 @@ function clean_note($text)
// 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
);