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:
parent
bf1be964f7
commit
0108998768
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue