[Freeswitch-svn] [commit] r5500 - freeswitch/trunk/scripts/contrib/trixter

Freeswitch SVN trixter at freeswitch.org
Thu Jul 5 17:24:54 EDT 2007


Author: trixter
Date: Thu Jul  5 17:24:54 2007
New Revision: 5500

Modified:
   freeswitch/trunk/scripts/contrib/trixter/Parse_XML_CDR.php

Log:
bug fix in parsing xml cdr records due to php auto html decoding data when it shouldnt


Modified: freeswitch/trunk/scripts/contrib/trixter/Parse_XML_CDR.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/trixter/Parse_XML_CDR.php	(original)
+++ freeswitch/trunk/scripts/contrib/trixter/Parse_XML_CDR.php	Thu Jul  5 17:24:54 2007
@@ -9,6 +9,7 @@
     var $_level = 0;
     
     function Parse_CDR_XML(&$data,$showattribs = false) {
+        $data = preg_replace("/<(.*?)><(.*?)><\/(.*?)>/","<\\1>\\2</\\3>",$data);
         $this->_showAttribs = $showattribs;
         $this->_parser = xml_parser_create();
         
@@ -74,6 +75,8 @@
             if (!isset($start[$name])) $start[$name] = '';
             $add = '';
         }
+
+
         $update = &$start[$name];
 
         if ($isattribs && !$this->_showAttribs) return;



More information about the Freeswitch-svn mailing list