mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-80585 report_log: sanitize descriptions
Strip any HTML tags from values in the "Description" column.
This commit is contained in:
parent
97090433d6
commit
0f6571f1cd
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ class report_log_table_log extends table_sql {
|
|||
*/
|
||||
public function col_description($event) {
|
||||
// Description.
|
||||
return $event->get_description();
|
||||
return format_text($event->get_description(), FORMAT_PLAIN);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue