diff options
author | Zach Copley <zach@status.net> | 2010-05-06 00:55:17 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-18 15:15:52 -0700 |
commit | 0dfef88cacde19cf0afaefbd422a7f5230091064 (patch) | |
tree | 6976bc3cac8e4ccfaa0f11d034bb6f21aaa9de00 /actions | |
parent | 68634f04969d2d7bcbd1d657c466090990dea501 (diff) |
HTML entity encode source link URLs in plain XML output and add rel="nofollow" to them
Diffstat (limited to 'actions')
-rw-r--r-- | actions/twitapisearchatom.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/twitapisearchatom.php b/actions/twitapisearchatom.php index 3eb54ccc3..6c740c490 100644 --- a/actions/twitapisearchatom.php +++ b/actions/twitapisearchatom.php @@ -349,7 +349,7 @@ class TwitapisearchatomAction extends ApiAction $ns = $notice->getSource(); if ($ns) { if (!empty($ns->name) && !empty($ns->url)) { - $source = '<a href="' . $ns->url . '">' . $ns->name . '</a>'; + $source = '<a href="' . $ns->url . '" rel="nofollow">' . $ns->name . '</a>'; } else { $source = $ns->code; } |