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