aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_forums.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/admin/admin_forums.php')
-rw-r--r--phpBB/admin/admin_forums.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php
index f206fd7f59..6c5184094d 100644
--- a/phpBB/admin/admin_forums.php
+++ b/phpBB/admin/admin_forums.php
@@ -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]);
}
}