mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
- correctly check custom class names [Bug #7206]
git-svn-id: file:///svn/phpbb/trunk@6929 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6651b34a1b
commit
920fc0156d
@ -1266,7 +1266,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// check whether the custom class name is valid
|
// 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);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user