diff --git a/mod/quiz/questiontypes/random/questiontype.php b/mod/quiz/questiontypes/random/questiontype.php index 111cff93219..7099c226f25 100644 --- a/mod/quiz/questiontypes/random/questiontype.php +++ b/mod/quiz/questiontypes/random/questiontype.php @@ -163,7 +163,7 @@ class quiz_random_qtype extends quiz_default_questiontype { if(false === $response) { return false; } - + $response = addslashes($response); // Prefix the answer field... $response = "random$realqid-$response";