Strip slashes from short answers before comparing

This commit is contained in:
moodler 2003-01-16 15:19:49 +00:00
parent 536d3e22be
commit 41b95af210

View 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 = "";
}