From fea1a0f4e5364594f46a3f67438cc84023fa1f6b Mon Sep 17 00:00:00 2001 From: vgilc Date: Fri, 2 Nov 2012 11:00:00 +0000 Subject: [PATCH] 2012-11-02 Vanessa Gil * operation/reporting/reporting_xml.php: Removed html entities. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7119 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/operation/reporting/reporting_xml.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0dbb8a4a1d..5f2578df74 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-11-02 Vanessa Gil + + * operation/reporting/reporting_xml.php: Removed html entities. + 2012-11-01 Junichi Satoh * include/help/ja/help_alert_fields_description.php, diff --git a/pandora_console/operation/reporting/reporting_xml.php b/pandora_console/operation/reporting/reporting_xml.php index 3cdfbde608..55e360457a 100644 --- a/pandora_console/operation/reporting/reporting_xml.php +++ b/pandora_console/operation/reporting/reporting_xml.php @@ -74,7 +74,10 @@ function write_xml_file_agent_data ($agent_data = array(), $file_temp) { if ($custom_fields !== false) { foreach ($custom_fields as $field) { - $content_report .= " <".$field['name'].">".$field['description']."<".$field['name'].">\n"; + $field['name'] = io_safe_output($field['name']); + //remove blank + $field['name'] = preg_replace('/\s/', '_', $field['name']); + $content_report .= " <".$field['name'].">".$field['description']."\n"; } } $content_report .= " ".$agent_data['id_os']."\n";