mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Strip slashes from short answers before comparing
This commit is contained in:
parent
536d3e22be
commit
41b95af210
@ -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 = "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user