diff options
author | Zach Copley <zach@status.net> | 2010-05-06 21:36:13 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-18 15:16:23 -0700 |
commit | 5ea019c41ac4d6c161f3c8f287d405971d4aadea (patch) | |
tree | a01cf04dde0cc36920732850a802f9003955d2ea /lib/apiaction.php | |
parent | 3708341857a8ae26c2936df53fede09aa17b09f8 (diff) |
Remove errant double HTML entity encoding in API source attribution
Diffstat (limited to 'lib/apiaction.php')
-rw-r--r-- | lib/apiaction.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php index f3efff402..68198effc 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -266,13 +266,17 @@ class ApiAction extends Action $ns = $notice->getSource(); if ($ns) { if (!empty($ns->name) && !empty($ns->url)) { - $source = '<a href="' . $ns->url . '" rel="nofollow">' . $ns->name . '</a>'; + $source = '<a href="' + . htmlspecialchars($ns->url) + . '" rel="nofollow">' + . htmlspecialchars($ns->name) + . '</a>'; } else { $source = $ns->code; } } - $twitter_status['source'] = htmlentities($source); + $twitter_status['source'] = $source; $twitter_status['id'] = intval($notice->id); $replier_profile = null; |