diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 7bb70a3ce8..e8a844d7ec 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -101,8 +101,16 @@ //parse the xml to get the call detail record info try { + //send info to lthe log xml_cdr_log($xml_string); - $xml = simplexml_load_string($xml_string); + + //disable xml entities + libxml_disable_entity_loader(true); + + //load the string into an xml object + $xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA); + + //send info to the log xml_cdr_log("\nxml load done\n"); } catch(Exception $e) {