]> git.mjollnir.org Git - moodle.git/commitdiff
Another wretched adslashes problem. Roll on placeholder. Thanks to Howard Miller...
authortjhunt <tjhunt>
Tue, 20 Feb 2007 15:18:46 +0000 (15:18 +0000)
committertjhunt <tjhunt>
Tue, 20 Feb 2007 15:18:46 +0000 (15:18 +0000)
mod/quiz/edit.php

index 9d0d7d3c8bebdf3b284d3d4854984c9f421f5680..110aa2eef34f4cd96487fcad1ea60155de34c99c 100644 (file)
         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'")) {