mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update xml_cdr.php
This commit is contained in:
@@ -254,9 +254,11 @@ if (!class_exists('xml_cdr')) {
|
|||||||
|
|
||||||
//parse the xml to get the call detail record info
|
//parse the xml to get the call detail record info
|
||||||
try {
|
try {
|
||||||
//$this->log($xml_string);
|
//disable xml entities
|
||||||
$xml = simplexml_load_string($xml_string);
|
libxml_disable_entity_loader(true);
|
||||||
//$this->log("\nxml load done\n");
|
|
||||||
|
//load the string into an xml object
|
||||||
|
$xml = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
@@ -810,7 +812,11 @@ if (!class_exists('xml_cdr')) {
|
|||||||
|
|
||||||
//parse the xml to get the call detail record info
|
//parse the xml to get the call detail record info
|
||||||
try {
|
try {
|
||||||
$conf_xml = simplexml_load_string($conf_xml_string);
|
//disable xml entities
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
|
|
||||||
|
//load the string into an xml object
|
||||||
|
$conf_xml = simplexml_load_string($conf_xml_string, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user