summaryrefslogtreecommitdiff
path: root/actions
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 /actions
parentee8c9d142251566f87ee0780b5788549cc0a0c12 (diff)
Remove errant double HTML entity encoding in API source attribution
Diffstat (limited to 'actions')
-rw-r--r--actions/twitapisearchatom.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/actions/twitapisearchatom.php b/actions/twitapisearchatom.php
index 6c740c490..51e8a8881 100644
--- a/actions/twitapisearchatom.php
+++ b/actions/twitapisearchatom.php
@@ -349,14 +349,17 @@ class TwitapisearchatomAction extends ApiAction
$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;
}
}
- $this->element("twitter:source", null,
- htmlentities($source));
+ $this->element("twitter:source", null, $source);
$this->elementStart('author');