Parse report message with 'SimpleMessageParser'
authorFabii547 <Fabii547@users.noreply.github.com>
Sun, 27 Sep 2015 07:56:08 +0000 (09:56 +0200)
committerFabii547 <Fabii547@users.noreply.github.com>
Sun, 27 Sep 2015 07:56:08 +0000 (09:56 +0200)
wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php

index a98ea6445391fb3cc0af4fb25dbea83cd6b30db0..f96da5472ff866c88688a2f5f4f11987c324027c 100644 (file)
@@ -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);
        }
        
        /**