diff --git a/mod/quiz/questiontypes/random/questiontype.php b/mod/quiz/questiontypes/random/questiontype.php index d042b574dbb..5fb5cc46f2a 100644 --- a/mod/quiz/questiontypes/random/questiontype.php +++ b/mod/quiz/questiontypes/random/questiontype.php @@ -162,7 +162,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";