diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9f5f717f73..1bd94d41ac 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-05-18 Koichiro Kikuchi + + * godmode/agentes/configurar_agente.php: Merged from 4.0: Added + missing io_safe_input to the module copy operation. + 2012-05-17 Sergio Martin * install.php: Fixed number of step mistakes diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 8db3bc7707..b3b6ceb4fd 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1032,7 +1032,7 @@ if (!empty($duplicate_module)) { // DUPLICATE agent module ! $id_duplicate_module = $duplicate_module; $original_name = modules_get_agentmodule_name($id_duplicate_module); - $copy_name = __('copy of') . ' ' . $original_name; + $copy_name = io_safe_input(__('copy of') . ' ') . $original_name; $cont = 0; $exists = true; @@ -1041,8 +1041,8 @@ if (!empty($duplicate_module)) { // DUPLICATE agent module ! 'nombre', $copy_name); if ($exists) { $cont++; - $copy_name = __('copy of') . ' ' . $original_name - . ' (' . $cont . ')'; + $copy_name = io_safe_input(__('copy of') . ' ') . $original_name + . io_safe_input(' (' . $cont . ')'); } }