From cc950a10f6fb7bd798d0f0dd38b2b3df19e17088 Mon Sep 17 00:00:00 2001
From: mdtrooper <tres.14159@gmail.com>
Date: Mon, 21 Feb 2011 17:35:28 +0000
Subject: [PATCH] 2011-02-21 Miguel de Dios  <miguel.dedios@artica.es>

	* include/ajax/agent.php: fixed the return of call ajax, now it haven't
	html entities.

	Fixes: #3174872



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3961 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog              | 7 +++++++
 pandora_console/include/ajax/agent.php | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index 7f26327e43..8ff990239e 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,10 @@
+2011-02-21 Miguel de Dios  <miguel.dedios@artica.es>
+
+	* include/ajax/agent.php: fixed the return of call ajax, now it haven't
+	html entities.
+	
+	Fixes: #3174872
+
 2011-02-21 Miguel de Dios  <miguel.dedios@artica.es>
 
 	* ChangeLog: Change the number of item in tracker in previus commit. Sorry
diff --git a/pandora_console/include/ajax/agent.php b/pandora_console/include/ajax/agent.php
index 0e1fb06a86..a362690cb1 100644
--- a/pandora_console/include/ajax/agent.php
+++ b/pandora_console/include/ajax/agent.php
@@ -48,7 +48,7 @@ if ($search_agents) {
         return;
 
     foreach ($agents as $agent) {
-        echo $agent['nombre']."|".$agent['id_agente']."|".$agent['direccion']."\n";
+        echo safe_output($agent['nombre']) . "|" . safe_output($agent['id_agente']) . "|" . safe_output($agent['direccion']) . "\n";
     }
 
     return;