Unescape Json before decoding (#3695)

I have realized since 4.4, json is escaped (\" for example). Some PHP releases fail to decode if that is used.
This commit is contained in:
Luis Daniel Lucio Quiroz 2018-10-25 11:32:09 -04:00 committed by FusionPBX
parent bf1be964f7
commit 0108998768
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@
//parse the xml to get the call detail record info
try {
if ($format == 'json') {
$json_string = stripcslashes($json_string);
$array = json_decode($json_string,true);
}
if ($format == 'xml') {