From: tjhunt Date: Tue, 20 Feb 2007 15:18:46 +0000 (+0000) Subject: Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=37b9e8bccc824cfdeef6f280ce3368ba632beac8;p=moodle.git Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller. Merged from MOODLE_18_STABLE. --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 9d0d7d3c8b..110aa2eef3 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -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'")) {