Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32316 feedback: fix tem type label does honor trusted text

  • Loading branch information...
commit bf4fb3b3177332378a468b710af4fc745f400d06 1 parent 9ad535c
@grabs grabs authored
View
2  mod/feedback/item/label/label_form.php
@@ -42,7 +42,7 @@ public function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('editor', 'presentation_editor', '', null, $presentationoptions);
- $mform->setType('presentation_editor', PARAM_CLEANHTML);
+ $mform->setType('presentation_editor', PARAM_RAW);
parent::definition();
$this->set_data($item);
View
3  mod/feedback/item/label/lib.php
@@ -167,7 +167,8 @@ public function print_item($item) {
$filearea,
$item->id);
- echo format_text($output, FORMAT_HTML, array('overflowdiv'=>true));
+ $formatoptions = array('overflowdiv'=>true, 'trusted'=>$CFG->enabletrusttext);
+ echo format_text($output, FORMAT_HTML, $formatoptions);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.