diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 8d2fc0c0e5..9c273e7962 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1435,7 +1435,7 @@ class Tree { $module['type'] = 'module'; $module['id'] = (int) $module['id']; - $module['name'] = $module['name']; + $module['name'] = io_safe_output($module['name']); $module['id_module_type'] = (int) $module['id_tipo_modulo']; $module['server_type'] = (int) $module['id_modulo']; $module['status'] = $module['estado']; diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index d18d625a00..047be52917 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -71,9 +71,9 @@ function treeview_printModuleTable($id_module, $server_data = false, $no_head = //Module name if ($module["disabled"]) - $cellName = "" . ui_print_truncate_text ($module["nombre"], GENERIC_SIZE_TEXT, true, true, true, '[…]',"text-transform: uppercase;") . ui_print_help_tip(__('Disabled'), true) . ""; + $cellName = "" . ui_print_truncate_text (io_safe_output($module["nombre"]), GENERIC_SIZE_TEXT, true, true, true, '[…]',"text-transform: uppercase;") . ui_print_help_tip(__('Disabled'), true) . ""; else - $cellName = ui_print_truncate_text ($module["nombre"], GENERIC_SIZE_TEXT, true, true, true, '[…]',"text-transform: uppercase;"); + $cellName = ui_print_truncate_text (io_safe_output($module["nombre"]), GENERIC_SIZE_TEXT, true, true, true, '[…]',"text-transform: uppercase;"); $row = array(); $row['title'] = __('Name');