diff options
author | Nils Adermann <naderman@naderman.de> | 2007-01-25 23:28:57 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2007-01-25 23:28:57 +0000 |
commit | 920fc0156db872c6200e85da79bf67eb2f416d02 (patch) | |
tree | 1ab048daf93948ffe0a3f9e54b967feb986929d0 | |
parent | 6651b34a1b191a416321c1b4bae715ca5777d5e7 (diff) | |
download | forums-920fc0156db872c6200e85da79bf67eb2f416d02.tar forums-920fc0156db872c6200e85da79bf67eb2f416d02.tar.gz forums-920fc0156db872c6200e85da79bf67eb2f416d02.tar.bz2 forums-920fc0156db872c6200e85da79bf67eb2f416d02.tar.xz forums-920fc0156db872c6200e85da79bf67eb2f416d02.zip |
- correctly check custom class names [Bug #7206]
git-svn-id: file:///svn/phpbb/trunk@6929 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |