fixed vulnerability
This commit is contained in:
parent
e5d4208ac9
commit
77142a0c1a
|
@ -330,7 +330,7 @@ if ($create_component) {
|
|||
|
||||
if ($name && !$name_check) {
|
||||
$id = network_components_create_network_component(
|
||||
$name,
|
||||
strip_tags(io_safe_input($name), '<br>'),
|
||||
$type,
|
||||
$id_group,
|
||||
[
|
||||
|
@ -431,7 +431,7 @@ if ($update_component) {
|
|||
$id,
|
||||
[
|
||||
'type' => $type,
|
||||
'name' => $name,
|
||||
'name' => strip_tags(io_safe_input($name, '<br>')),
|
||||
'id_group' => $id_group,
|
||||
'description' => $description,
|
||||
'module_interval' => $module_interval,
|
||||
|
|
|
@ -111,7 +111,7 @@ if (isset($id)) {
|
|||
$component = network_components_get_network_component((int) $id);
|
||||
if ($component !== false) {
|
||||
$id_component_type = $component['id_modulo'];
|
||||
$name = $component['name'];
|
||||
$name = io_safe_output($component['name']);
|
||||
$type = $component['type'];
|
||||
$description = $component['description'];
|
||||
$max = $component['max'];
|
||||
|
|
Loading…
Reference in New Issue