mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix Call Detail Records with invalid xml
This commit is contained in:
@@ -339,6 +339,12 @@
|
||||
//replace xml tag name <set api_hangup_hook> with <api_hangup_hook>
|
||||
$xml_string = preg_replace('/(<\/?)(set )([^>]*>)/', '$1$3', $xml_string);
|
||||
|
||||
//replace xml tag name <^^,default_language> with <default_language>
|
||||
$xml_string = preg_replace('/(<\/?)(\^\^,)([^>]*>)/', '$1$3', $xml_string);
|
||||
|
||||
//replace xml tag name <nolocal:operator> with <operator>
|
||||
$xml_string = preg_replace('/(<\/?)(nolocal:)([^>]*>)/', '$1$3', $xml_string);
|
||||
|
||||
//disable xml entities
|
||||
if (PHP_VERSION_ID < 80000) { libxml_disable_entity_loader(true); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user