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:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user