Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-14928 - Adding random questions from a category with an apostroph…

…e in the name does not work. Stupid bloody addslashes. Roll on dmllib 2.0.
  • Loading branch information...
commit dfd00d9d327db80a616a8267dc9aca61cc799c2c 1 parent 0c76f8b
tjhunt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/edit.php
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.