aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/output.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-20 12:08:27 -0400
committercash <cash.costello@gmail.com>2013-04-20 12:08:27 -0400
commit164ff10b46d5917c7ab6ad068abf10e492464691 (patch)
treebfd9741ec9c161dd987d3df91b055d3316a313bf /engine/lib/output.php
parent834c4ad0bf82f28949b108eb6c957fde3c18e1ce (diff)
downloadelgg-164ff10b46d5917c7ab6ad068abf10e492464691.tar.gz
elgg-164ff10b46d5917c7ab6ad068abf10e492464691.tar.bz2
Fixes #5244 adds nofollow to anchor tags created by parse_urls()
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r--engine/lib/output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php
index fe5bbcaaf..6905b9b71 100644
--- a/engine/lib/output.php
+++ b/engine/lib/output.php
@@ -39,7 +39,7 @@ function parse_urls($text) {
$url = rtrim($url, ".!,");
}
$urltext = str_replace("/", "/<wbr />", $url);
- return "<a href=\"$url\">$urltext</a>$punc";
+ return "<a href=\"$url\" rel=\"nofollow\">$urltext</a>$punc";
'
), $text);