Skip to content

Commit

Permalink
MDL-46073 badges: Make sure html tags are not used in badge description
Browse files Browse the repository at this point in the history
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
  • Loading branch information
Yuliya Bozhko committed Jul 7, 2014
1 parent 4de51c2 commit 17f5e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion badges/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 17f5e50

Please sign in to comment.