From: moodler Date: Thu, 23 Jan 2003 04:23:05 +0000 (+0000) Subject: If comment contains quotes then it can cause problems when X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=66fef9f99f9fc49351602b2a946114276e906323;p=moodle.git If comment contains quotes then it can cause problems when an assignment is uploaded. Bug fixed by Ray Kingdon. --- diff --git a/mod/assignment/upload.php b/mod/assignment/upload.php index 50d3ac6897..56c5e53676 100644 --- a/mod/assignment/upload.php +++ b/mod/assignment/upload.php @@ -57,6 +57,7 @@ if ($submission) { $submission->timemodified = time(); $submission->numfiles = 1; + $submission->comment = addslashes($submission->comment); if (update_record("assignment_submissions", $submission)) { print_heading(get_string("uploadsuccess", "assignment", $newfile_name) ); } else {