From 9738bbd51b2e288c38c9490d855fae1fe3fda756 Mon Sep 17 00:00:00 2001
From: zarzuelo <noreply@pandorafms.org>
Date: Thu, 14 Oct 2010 17:09:26 +0000
Subject: [PATCH] 2010-10-14  Sergio Martin <sergio.martin@artica.es>

	* operation/agentes/ver_agente.php: Safe output the list of
	modules from an agent in the ajax control



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                        | 5 +++++
 pandora_console/operation/agentes/ver_agente.php | 4 ++++
 2 files changed, 9 insertions(+)

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 <sergio.martin@artica.es>
+
+	* operation/agentes/ver_agente.php: Safe output the list of
+	modules from an agent in the ajax control
+
 2010-10-14  Sergio Martin <sergio.martin@artica.es>
 
 	* 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');