summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-06 21:36:13 +0000
committerZach Copley <zach@status.net>2010-05-06 21:48:12 +0000
commit869bc32d0d8cd68d75483e33c62d8ea9f1cc8e2c (patch)
tree18470b5554342bea180438854c3be4a0ebe9d7eb /lib
parentee8c9d142251566f87ee0780b5788549cc0a0c12 (diff)
Remove errant double HTML entity encoding in API source attribution
Diffstat (limited to 'lib')
-rw-r--r--lib/apiaction.php8
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;