Fis bug on reports db interface query

This commit is contained in:
Luis Calvo 2019-11-21 14:36:31 +01:00
parent 775289fc20
commit dcf33758fa
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ function reporting_xml_get_report($report, $filename, $return=false)
} }
} }
// Remove entities.
$report = io_safe_output($report);
$xml = null; $xml = null;
$xml = array2XML($report, 'report', $xml); $xml = array2XML($report, 'report', $xml);
$xml = preg_replace('/(<[^>]+>)(<[^>]+>)(<[^>]+>)/', "$1\n$2\n$3", $xml); $xml = preg_replace('/(<[^>]+>)(<[^>]+>)(<[^>]+>)/', "$1\n$2\n$3", $xml);