fixed vulnerability

This commit is contained in:
Marcos Alconada 2020-08-14 11:42:49 +02:00 committed by Daniel Rodriguez
parent e5d4208ac9
commit 77142a0c1a
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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'];