mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
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:
committed by
FusionPBX
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') {
|
||||
|
||||
Reference in New Issue
Block a user