From 0dc2e2aefcad73eedf8f3b800fde579208ea025e Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 10 Apr 2006 07:29:47 +0000 Subject: [PATCH] changed param_alpha to param_notags, otherwise can not support tags in non-lation --- blog/tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 2.39.5