From d8793bf35cf0520f4346911d06b3d2413a1ef99f Mon Sep 17 00:00:00 2001 From: poltawski Date: Sat, 17 Mar 2007 22:58:30 +0000 Subject: [PATCH] =?UTF-8?q?MDL-6386=20-=20Regression=20from=20MDL-6462,=20?= =?UTF-8?q?lost=20stripslashes=20in=20CLOZE=20question,=20thanks=20to=20Jo?= =?UTF-8?q?seph=20Joseph=20R=C3=83=C2=83=C3=82=C2=A9zeau=20=20for=20his=20?= =?UTF-8?q?attention=20to=20this=20issue.=20Backported=20from=20MOODLE=5F1?= =?UTF-8?q?8=5FSTABLE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- question/type/multianswer/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index ad8ed8e590a..f3200e8e3fa 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -224,7 +224,7 @@ class embedded_cloze_qtype extends default_questiontype { $inputname = $nameprefix.$positionkey; if (isset($state->responses[$positionkey])) { - $response = $state->responses[$positionkey]; + $response = stripslashes($state->responses[$positionkey]); } else { $response = null; }