Permalink
Browse files

MDL-21769 fixed input validation

  • Loading branch information...
1 parent 3d2d9e6 commit b6c760ccd7587810d5fc4b8a2215bd5dea791601 @skodak skodak committed Mar 7, 2010
@@ -55,7 +55,7 @@ function view() {
$defaults->text = format_text($submission->data1, $submission->data2, $options);
$defaults->format = FORMAT_HTML;
} else {
- $defaults->text = $submission->data1;
+ $defaults->text = clean_text($submission->data1, $submission->data2);
$defaults->format = $submission->data2;
}
}
@@ -486,7 +486,7 @@ function upload_notes() {
$defaults->id = $this->cm->id;
if ($submission = $this->get_submission($USER->id)) {
- $defaults->text = $submission->data1;
+ $defaults->text = clean_text($submission->data1);
} else {
$defaults->text = '';
}

0 comments on commit b6c760c

Please sign in to comment.