Fix invalid XML CDR
This commit is contained in:
parent
abd2077ede
commit
8b54dd8b61
|
|
@ -339,6 +339,9 @@ if (!class_exists('xml_cdr')) {
|
||||||
//remove invalid numeric xml tags
|
//remove invalid numeric xml tags
|
||||||
$xml_string = preg_replace('/<\/?\d+>/', '', $xml_string);
|
$xml_string = preg_replace('/<\/?\d+>/', '', $xml_string);
|
||||||
|
|
||||||
|
//replace xml tag name <set api_hangup_hook> with <api_hangup_hook>
|
||||||
|
$xml_string = preg_replace('/(<\/?)(set )([^>]*>)/', '$1$3', $xml_string);
|
||||||
|
|
||||||
//disable xml entities
|
//disable xml entities
|
||||||
if (PHP_VERSION_ID < 80000) { libxml_disable_entity_loader(true); }
|
if (PHP_VERSION_ID < 80000) { libxml_disable_entity_loader(true); }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue