Browse files

MDL-21769 fixed input validation

  • Loading branch information...
1 parent 99b7991 commit 2b4fb2308c8948c0cbbe467cd3477b0ce4fbe889 @skodak skodak committed Mar 7, 2010
View
2 mod/assignment/type/online/assignment.class.php
@@ -54,7 +54,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;
}
}
View
2 mod/assignment/type/upload/assignment.class.php
@@ -442,7 +442,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 2b4fb23

Please sign in to comment.