From 27aa2243ea85afac4dfb195ea153ca28466e25f7 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Mon, 6 Feb 2006 23:15:59 +0000 Subject: [PATCH] I was adding the slashes twice --- mod/quiz/questiontypes/random/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";