From fd041825992f4a9f7850aa30f392b430ae2e7d76 Mon Sep 17 00:00:00 2001 From: Fabii547 Date: Sun, 27 Sep 2015 09:56:08 +0200 Subject: [PATCH] Parse report message with 'SimpleMessageParser' --- .../data/moderation/queue/ViewableModerationQueue.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index a98ea64453..f96da5472f 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -6,6 +6,7 @@ use wcf\data\user\UserProfile; use wcf\data\user\UserProfileCache; use wcf\data\DatabaseObjectDecorator; use wcf\data\IUserContent; +use wcf\system\bbcode\SimpleMessageParser; use wcf\system\moderation\queue\ModerationQueueManager; use wcf\system\visitTracker\VisitTracker; @@ -153,7 +154,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator { * @return string */ public function getFormattedMessage() { - return nl2br(htmlspecialchars($this->message)); + return SimpleMessageParser::getInstance()->parse($this->message); } /** -- 2.20.1