diff options
author | Zach Copley <zach@status.net> | 2010-05-06 21:36:13 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-05-06 21:48:12 +0000 |
commit | 869bc32d0d8cd68d75483e33c62d8ea9f1cc8e2c (patch) | |
tree | 18470b5554342bea180438854c3be4a0ebe9d7eb /lib/apiaction.php | |
parent | ee8c9d142251566f87ee0780b5788549cc0a0c12 (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 2608be227..42aa08ef7 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -319,13 +319,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; |