Skip to content

Commit

Permalink
Announcements: add remove_xss
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Aug 5, 2021
1 parent 094fef4 commit 9b16ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/AnnouncementManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,12 @@ public static function displayAnnouncement($id)

// The user id is always the current one.
$toUserId = api_get_user_id();
$content = self::parseContent(
$content = Security::remove_XSS(self::parseContent(
$toUserId,
$content,
api_get_course_id(),
api_get_session_id()
);
));

$html .= "<tr><td>$content</td></tr>";
$html .= "<tr>";
Expand Down

0 comments on commit 9b16ad4

Please sign in to comment.