Skip to content

Commit

Permalink
Another wretched adslashes problem. Roll on placeholder. Thanks to Ho…
Browse files Browse the repository at this point in the history
…ward Miller. Merged from MOODLE_18_STABLE.
  • Loading branch information
tjhunt committed Feb 20, 2007
1 parent bf1c140 commit 37b9e8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/quiz/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
if (! $category = get_record('question_categories', 'id', $categoryid)) {
error('Category ID is incorrect');
}
$category->name = addslashes($category->name);
// find existing random questions in this category
$random = RANDOM;
if ($existingquestions = get_records_select('question', "qtype = '$random' AND category = '$category->id'")) {
Expand Down

0 comments on commit 37b9e8b

Please sign in to comment.