From: toyomoyo Date: Mon, 10 Apr 2006 07:29:47 +0000 (+0000) Subject: changed param_alpha to param_notags, otherwise can not support tags in non-lation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0dc2e2aefcad73eedf8f3b800fde579208ea025e;p=moodle.git changed param_alpha to param_notags, otherwise can not support tags in non-lation --- diff --git a/blog/tags.php b/blog/tags.php index ce4157b94a..4c7ce12eb4 100755 --- a/blog/tags.php +++ b/blog/tags.php @@ -11,7 +11,7 @@ switch ($mode) { die('you can not add official tags'); } - if (($otag = optional_param('otag', '', PARAM_ALPHA)) && (!get_record('tags','text',$otag))) { + if (($otag = optional_param('otag', '', PARAM_NOTAGS)) && (!get_record('tags','text',$otag))) { $tag->userid = $USER->id; $tag->text = $otag; $tag->type = 'official'; @@ -33,7 +33,7 @@ switch ($mode) { error ('you can not add tags'); } - if (($ptag = optional_param('ptag', '', PARAM_ALPHA)) && (!get_record('tags','text',$ptag))) { + if (($ptag = optional_param('ptag', '', PARAM_NOTAGS)) && (!get_record('tags','text',$ptag))) { $tag->userid = $USER->id; $tag->text = $ptag; $tag->type = 'personal';