From dfd00d9d327db80a616a8267dc9aca61cc799c2c Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 20 May 2008 17:09:42 +0000 Subject: [PATCH] MDL-14928 - Adding random questions from a category with an apostrophe in the name does not work. Stupid bloody addslashes. Roll on dmllib 2.0. --- mod/quiz/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 1e5c3b34696..ff76e5a1b69 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -182,7 +182,7 @@ if ($randomcreate > 0) { - $form->name = get_string('random', 'quiz') .' ('. $category->name .')'; + $form->name = addslashes(get_string('random', 'quiz') .' ('. $category->name .')'); $form->questiontext = $recurse; // we use the questiontext field to store the info // on whether to include questions in subcategories $form->questiontextformat = 0;