mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +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
880d32b1a0
commit
0f4f46cd14
@@ -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