]> git.mjollnir.org Git - moodle.git/commitdiff
Strip slashes from short answers before comparing
authormoodler <moodler>
Thu, 16 Jan 2003 15:19:49 +0000 (15:19 +0000)
committermoodler <moodler>
Thu, 16 Jan 2003 15:19:49 +0000 (15:19 +0000)
mod/quiz/lib.php

index 4cec88a6116b5bae0f661fa46a299b5cd1877ee4..16155400772daf8dda04708207b2efe7265e907f 100644 (file)
@@ -1016,7 +1016,7 @@ function quiz_grade_attempt_results($quiz, $questions) {
         switch ($question->qtype) {
             case SHORTANSWER:
                 if ($question->answer) {
-                    $question->answer = trim($question->answer[0]);
+                    $question->answer = trim(stripslashes($question->answer[0]));
                 } else {
                     $question->answer = "";
                 }