forked from extern/egroupware
fixed problems pointed out by enricomilanese-AT-gmail.com
This commit is contained in:
parent
eb70245a4b
commit
d9f9c0bd45
@ -314,6 +314,8 @@
|
||||
|
||||
function edit()
|
||||
{
|
||||
if (!preg_match('/^(#[0-9a-f]+|[a-z]+)?$/i',$_POST['cat_data']['color'])) unset($_POST['cat_data']['color']);
|
||||
if (!preg_match('/^[-_\.a-z0-9]+\.(png|gif|jpe?g)$/i',$_POST['cat_data']['icon'])) unset($_POST['cat_data']['icon']);
|
||||
$new_parent = (int)$_POST['new_parent'];
|
||||
$cat_parent = (int)$_POST['cat_parent'];
|
||||
$cat_name = $_POST['cat_name'];
|
||||
|
@ -331,6 +331,8 @@
|
||||
'cats_level' => $cats_level,
|
||||
'cat_id' => $cat_id
|
||||
);
|
||||
if (!preg_match('/^(#[0-9a-f]+|[a-z]+)?$/i',$_POST['cat_data']['color'])) unset($_POST['cat_data']['color']);
|
||||
if (!preg_match('/^[-_\.a-z0-9]+\.(png|gif|jpe?g)$/i',$_POST['cat_data']['icon'])) unset($_POST['cat_data']['icon']);
|
||||
$new_parent = $_POST['new_parent'];
|
||||
$cat_parent = $_POST['cat_parent'];
|
||||
$cat_name = $_POST['cat_name'];
|
||||
|
Loading…
Reference in New Issue
Block a user