From 71219a90406ee18f540b14d49b3e670962e6578a Mon Sep 17 00:00:00 2001
From: dervitx <noreply@pandorafms.org>
Date: Sat, 8 Jul 2006 20:57:43 +0000
Subject: [PATCH] - when a module passes string data to the server in a XML
 document, presence of special XML characters like '&' and '<' si not checked.
 A temporal workaround is implemented in this revision, consisting on
 encapsulating the module data within <![CDATA[  ]]>
 http://www.w3schools.com/xml/xml_cdata.asp

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@107 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_agents/linux/pandora_agent.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_agents/linux/pandora_agent.sh b/pandora_agents/linux/pandora_agent.sh
index a3fdf4e669..1e16364be1 100755
--- a/pandora_agents/linux/pandora_agent.sh
+++ b/pandora_agents/linux/pandora_agent.sh
@@ -130,7 +130,7 @@ do
             			then
 	             			res=`eval expr $res 2> /dev/null`
      				fi
-            			echo "<data>$res</data>" >> $DATA2
+            			echo "<data><![CDATA[$res]]></data>" >> $DATA2
 			fi
          	fi