changed param_alpha to param_notags, otherwise can not support tags in non-lation

This commit is contained in:
toyomoyo 2006-04-10 07:29:47 +00:00
parent eccfc1cac0
commit 0dc2e2aefc

View File

@ -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';