From 920fc0156db872c6200e85da79bf67eb2f416d02 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 25 Jan 2007 23:28:57 +0000 Subject: [PATCH] - correctly check custom class names [Bug #7206] git-svn-id: file:///svn/phpbb/trunk@6929 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 276abd29b6..62d0b7f7d2 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1266,7 +1266,7 @@ parse_css_file = {PARSE_CSS_FILE} else { // check whether the custom class name is valid - if (!preg_match('/^[a-z0-9#:.\- ]+$/i', $add_custom)) + if (!preg_match('/^[a-z0-9#:.\- ]+$/i', $custom_class)) { trigger_error($user->lang['THEME_ERR_CLASS_CHARS'] . adm_back_link($this->u_action . "&action=edit&id=$theme_id&text_rows=$text_rows"), E_USER_WARNING); }