diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index fb8a845284..5ff2132d12 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -258,7 +258,7 @@ if ($id_modulo === COMPONENT_TYPE_WIZARD) { if ($execution_type === EXECUTION_TYPE_PLUGIN || $module_protocol === 'wmi') { // Search all parameters received with extra_fields. foreach ($_REQUEST as $parameter => $thisValue) { - // Extra fields (OIDs Macros or WMI Extra fields) + // Extra fields (OIDs Macros or WMI Extra fields). if (preg_match('/extra_field_'.$module_protocol.'_/', $parameter) !== 0) { $tmpParameter = explode('_', $parameter); $extra_fields['extra_field_'.$tmpParameter[3]] = get_parameter($parameter); @@ -330,7 +330,7 @@ if ($create_component) { if ($name && !$name_check) { $id = network_components_create_network_component( - strip_tags(io_safe_input($name), '
'), + $name, $type, $id_group, [ @@ -431,7 +431,7 @@ if ($update_component) { $id, [ 'type' => $type, - 'name' => strip_tags(io_safe_input($name, '
')), + 'name' => $name, 'id_group' => $id_group, 'description' => $description, 'module_interval' => $module_interval,