mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fixed bug #474123
git-svn-id: file:///svn/phpbb/trunk@1251 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e12e73d0b7
commit
5cce2b35f7
2 changed files with 7 additions and 4 deletions
|
@ -213,7 +213,10 @@ if( isset($HTTP_POST_VARS['addforum']) || isset($HTTP_POST_VARS['addcategory'])
|
|||
if( $mode == "addforum" )
|
||||
{
|
||||
list($cat_id) = each($HTTP_POST_VARS['addforum']);
|
||||
$forumname = $HTTP_POST_VARS['forumname'][$cat_id];
|
||||
//
|
||||
// stripslashes needs to be run on this because slashes are added when the forum name is posted
|
||||
//
|
||||
$forumname = stripslashes($HTTP_POST_VARS['forumname'][$cat_id]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -164,9 +164,9 @@ else if( isset($HTTP_POST_VARS['group_update']) )
|
|||
}
|
||||
else
|
||||
{
|
||||
$group_type = isset($HTTP_POST_VARS['group_type']) ? trim(addslashes($HTTP_POST_VARS['group_type'])) : "";
|
||||
$group_name = isset($HTTP_POST_VARS['group_name']) ? trim(addslashes($HTTP_POST_VARS['group_name'])) : "";
|
||||
$group_description = isset($HTTP_POST_VARS['group_description']) ? trim(addslashes($HTTP_POST_VARS['group_description'])) : "";
|
||||
$group_type = isset($HTTP_POST_VARS['group_type']) ? trim($HTTP_POST_VARS['group_type']) : "";
|
||||
$group_name = isset($HTTP_POST_VARS['group_name']) ? trim($HTTP_POST_VARS['group_name']) : "";
|
||||
$group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : "";
|
||||
$group_moderator = isset($HTTP_POST_VARS['group_moderator']) ? intval($HTTP_POST_VARS['group_moderator']) : "";
|
||||
$delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? intval($HTTP_POST_VARS['delete_old_moderator']) : "";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue