From 17f5e50f577a21f3861a3fe4b4848b4298746081 Mon Sep 17 00:00:00 2001 From: Yuliya Bozhko Date: Tue, 8 Jul 2014 09:34:51 +1200 Subject: [PATCH] MDL-46073 badges: Make sure html tags are not used in badge description Signed-off-by: Yuliya Bozhko --- badges/edit_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badges/edit_form.php b/badges/edit_form.php index 24e52d7ee058a..cebc48304613f 100644 --- a/badges/edit_form.php +++ b/badges/edit_form.php @@ -54,7 +54,7 @@ public function definition() { $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client'); $mform->addElement('textarea', 'description', get_string('description', 'badges'), 'wrap="virtual" rows="8" cols="70"'); - $mform->setType('description', PARAM_CLEANHTML); + $mform->setType('description', PARAM_NOTAGS); $mform->addRule('description', null, 'required'); $str = $action == 'new' ? get_string('badgeimage', 'badges') : get_string('newimage', 'badges');