From dc2bfe815d146bbb8b557cd9e2ae51df09af354f Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Mon, 6 Feb 2006 21:29:20 +0000 Subject: [PATCH] Added addslashes --- 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 c89f015dde1..154d1f33220 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";