From 0f4f46cd14caadc6a6393207141adcfe719caa99 Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Thu, 25 Oct 2018 11:32:09 -0400 Subject: [PATCH] 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. --- app/xml_cdr/xml_cdr_details.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/xml_cdr/xml_cdr_details.php b/app/xml_cdr/xml_cdr_details.php index 73b6456259..6f3a599932 100644 --- a/app/xml_cdr/xml_cdr_details.php +++ b/app/xml_cdr/xml_cdr_details.php @@ -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') {