Skip to content

Commit

Permalink
TW21240105, cleaning comments before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
MichPound committed Feb 17, 2025
1 parent 94070de commit ffdb962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ public static function get_comments($noteid) {
$comment = (object)[];
$comment->id = $note->id;
$comment->noteid = $note->noteid;
$comment->content = $note->content;
$comment->content = clean_param($note->content, PARAM_TEXT);
$comment->candelete = (($canpost && $note->userid === $USER->id) || $candeleteall) ? true : false;
$comment->date = userdate($note->timecreated);
$comments[] = $comment;
Expand Down

0 comments on commit ffdb962

Please sign in to comment.