]> git.mjollnir.org Git - moodle.git/commitdiff
Some excess of security was causing Bug 4713.
authorstronk7 <stronk7>
Tue, 21 Mar 2006 20:08:51 +0000 (20:08 +0000)
committerstronk7 <stronk7>
Tue, 21 Mar 2006 20:08:51 +0000 (20:08 +0000)
(http://moodle.org/bugs/bug.php?op=show&bugid=4713)

Merged from MOODLE_15_STABLE

mod/glossary/editcategories.php

index 9543b02886beff182b27fadec1a884e94380cf66..222a82e43f445365cae3237a33f5975e3f8776a0 100644 (file)
@@ -8,7 +8,7 @@
     $id = required_param('id', PARAM_INT);                       // Course Module ID, or
     $usedynalink = optional_param('usedynalink', 0, PARAM_INT);  // category ID
     $confirm     = optional_param('confirm', 0, PARAM_INT);      // confirm the action
-    $name        = optional_param('name', '', PARAM_ALPHANUM);  // confirm the name
+    $name        = optional_param('name', '', PARAM_CLEAN);  // confirm the name
 
     $action = optional_param('action', '', PARAM_ALPHA ); // what to do
     $hook   = optional_param('hook', '', PARAM_ALPHANUM); // category ID