Skip to content

Commit

Permalink
Encode the title of moderation queues
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Jan 1, 2024
1 parent 38a9727 commit bec9afc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use wcf\system\user\storage\UserStorageHandler;
use wcf\system\visitTracker\VisitTracker;
use wcf\system\WCF;
use wcf\util\StringUtil;

/**
* Executes moderation queue-related actions.
Expand Down Expand Up @@ -145,7 +146,7 @@ public function getModerationQueueData(): array

$items = \array_map(static function (ViewableModerationQueue $queue) {
return [
'content' => $queue->getAffectedObject()->getTitle(),
'content' => StringUtil::encodeHTML($queue->getAffectedObject()->getTitle()),
'image' => '<span class="icon icon48 ' . $queue->getIconName() . '"></span>',
'isUnread' => $queue->isNew(),
'link' => $queue->getLink(),
Expand Down

0 comments on commit bec9afc

Please sign in to comment.