Update v_xml_cdr_import.php

This commit is contained in:
FusionPBX
2019-12-23 11:17:34 -07:00
committed by GitHub
parent d2ee8fbfc6
commit 71479d69fc

View File

@@ -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) {