summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-02 09:32:03 -0700
committerBrion Vibber <brion@pobox.com>2010-04-02 09:34:42 -0700
commit6cd0637e552ed6ce35b4447aa280fb13cf7f65cb (patch)
tree660863b7b8568a8a67bfa115d63665dc970b21b1 /lib
parentf1c01f9ead4a5f4da7c6964f0998831fa31f8a16 (diff)
Ticket 2271: extra whitespace in underlined link for username in notice lists
Switching to a raw() output for the <span> of the nickname removes the extra whitespace and fixes display.
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 0d4cd4dd9..83c8de9f6 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -340,8 +340,9 @@ class NoticeListItem extends Widget
function showNickname()
{
- $this->out->element('span', array('class' => 'nickname fn'),
- $this->profile->nickname);
+ $this->out->raw('<span class="nickname fn">' .
+ htmlspecialchars($this->profile->nickname) .
+ '</span>');
}
/**