summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
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:32:03 -0700
commitb10ff031d9ba8c5e3b5267a469e8332011149fee (patch)
treeb5dcf01c4154317bad71785a87cce268bfb23627 /lib/noticelist.php
parent9f2cfd20f80fbeadd59b0f9a153be0b9f0799fae (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/noticelist.php')
-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>');
}
/**