Skip to content

Commit 9b16ad4

Browse files
committed
Announcements: add remove_xss
1 parent 094fef4 commit 9b16ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/inc/lib/AnnouncementManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ public static function displayAnnouncement($id)
482482

483483
// The user id is always the current one.
484484
$toUserId = api_get_user_id();
485-
$content = self::parseContent(
485+
$content = Security::remove_XSS(self::parseContent(
486486
$toUserId,
487487
$content,
488488
api_get_course_id(),
489489
api_get_session_id()
490-
);
490+
));
491491

492492
$html .= "<tr><td>$content</td></tr>";
493493
$html .= "<tr>";

0 commit comments

Comments
 (0)