From b10ff031d9ba8c5e3b5267a469e8332011149fee Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 2 Apr 2010 09:32:03 -0700 Subject: [PATCH] Ticket 2271: extra whitespace in underlined link for username in notice lists Switching to a raw() output for the of the nickname removes the extra whitespace and fixes display. --- lib/noticelist.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/noticelist.php b/lib/noticelist.php index 0d4cd4dd91..83c8de9f6e 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('' . + htmlspecialchars($this->profile->nickname) . + ''); } /**