diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1d65a7f2c8..925ec7f5c9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-14 Sergio Martin + + * operation/agentes/ver_agente.php: Safe output the list of + modules from an agent in the ajax control + 2010-10-14 Sergio Martin * include/functions_modules.php diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 99594c297f..7ecab88e54 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -140,6 +140,10 @@ if (is_ajax ()) { ($fields != '' ? explode (',', $fields) : "*"), ($filter != '' ? $filter : false), $indexed); + foreach($agent_modules as $key => $module) { + $agent_modules[$key]['nombre'] = safe_output($module['nombre']); + } + //Hack to translate text "any" in PHP to javascript //$agent_modules['any_text'] = __('Any');