diff options
author | cash <cash.costello@gmail.com> | 2013-04-20 12:08:27 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-04-20 12:08:27 -0400 |
commit | 164ff10b46d5917c7ab6ad068abf10e492464691 (patch) | |
tree | bfd9741ec9c161dd987d3df91b055d3316a313bf /engine/lib/output.php | |
parent | 834c4ad0bf82f28949b108eb6c957fde3c18e1ce (diff) | |
download | elgg-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.php | 2 |
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); |