diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 7cd6a1e22e7..fd120e291c3 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->category = $category->id; $form->questiontext = $recurse; // we use the questiontext field to store the info // on whether to include questions in subcategories