mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 17:09:46 +01:00
filters applied to some values
This commit is contained in:
parent
945f36cd7f
commit
a069b0c541
@ -186,7 +186,7 @@ if (isset($_POST['update_field']))
|
||||
|
||||
if (isset($_POST['update_category']))
|
||||
{
|
||||
$name = trim($tp->toHTML($_POST['user_field']));
|
||||
$name = trim($tp->toDB($_POST['user_field']));
|
||||
$result = admin_update($sql->db_Update("user_extended_struct","user_extended_struct_name = '{$name}', user_extended_struct_read = '{$_POST['user_read']}', user_extended_struct_write = '{$_POST['user_write']}', user_extended_struct_applicable = '{$_POST['user_applicable']}' WHERE user_extended_struct_id = '{$sub_action}'"), 'update', EXTLAN_43);
|
||||
if($result)
|
||||
{
|
||||
@ -198,7 +198,7 @@ if (isset($_POST['update_category']))
|
||||
|
||||
if (isset($_POST['add_category']))
|
||||
{
|
||||
$name = $tp->toHTML($_POST['user_field']);
|
||||
$name = $tp->toDB($_POST['user_field']);
|
||||
$result = admin_update($sql->db_Insert("user_extended_struct","'0', '{$name}', '', 0, '', '', '', '{$_POST['user_read']}', '{$_POST['user_write']}', '0', '0', '{$_POST['user_applicable']}', '0', '0'"), 'insert', EXTLAN_40);
|
||||
if($result)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user