From b414fa92347ef97e378a63a262a5fff0c895d92f Mon Sep 17 00:00:00 2001 From: koichirok Date: Fri, 18 May 2012 06:56:20 +0000 Subject: [PATCH] 2012-05-18 Koichiro Kikuchi * godmode/agentes/configurar_agente.php: Merged from 4.0: Added missing io_safe_input to the module copy operation. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/configurar_agente.php | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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 . ')'); } }