From 37b9e8bccc824cfdeef6f280ce3368ba632beac8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 20 Feb 2007 15:18:46 +0000 Subject: [PATCH] Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller. Merged from MOODLE_18_STABLE. --- mod/quiz/edit.php | 1 + 1 file changed, 1 insertion(+) 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'")) { -- 2.39.5