Skip to content

Commit

Permalink
TW21240103, cleaning new comments before database
Browse files Browse the repository at this point in the history
  • Loading branch information
MichPound committed Feb 17, 2025
1 parent d2b5f0f commit 52ac96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function save() {
global $DB, $USER;

$this->timemodified = time();
$this->content = html_to_text($this->content, 5000, false);
$this->content = clean_param(html_to_text($this->content, 5000, false), PARAM_TEXT);

if ($this->id > 0) {
$DB->update_record('board_comments', $this);
Expand Down

0 comments on commit 52ac96d

Please sign in to comment.