$this->setError(_('Forum Description Must Be At Least 10 Characters'));
return false;
}
+ $forum_name = strtolower($forum_name);
if (!preg_match('/^([_\.0-9a-z-])*$/',$forum_name)) {
$this->setError(_('Illegal Characters in Forum Name'));
return false;
db_begin();
$result = db_query_params('INSERT INTO forum_group_list (group_id,forum_name,is_public,description,send_all_posts_to,allow_anonymous,moderation_level) VALUES ($1,$2,$3,$4,$5,$6,$7)',
array ($this->Group->getID(),
- strtolower($forum_name),
+ $forum_name,
$is_public,
htmlspecialchars($description),
$send_all_posts_to,
$this->setError(_('Forum Description Must Be At Least 10 Characters'));
return false;
}
+ $forum_name = strtolower($forum_name);
if (!preg_match('/^([_\.0-9a-z-])*$/',$forum_name)) {
$this->setError(_('Illegal Characters in Forum Name'));
return false;
is_public=$6
WHERE group_id=$7
AND group_forum_id=$8',
- array (strtolower($forum_name),
+ array ($forum_name,
htmlspecialchars($description),
$send_all_posts_to,
$allow_anonymous,
//delete forum's role setting
db_query_params ('DELETE FROM role_setting WHERE section_name=$1 AND ref_id=$2',
array ('forum',
- $this->getID())) ;
+ $this->getID())) ;
db_commit();
return true;
}