Changeset 16075


Ignore:
Timestamp:
06/27/12 06:09:54 (7 years ago)
Author:
rvelices
Message:

bug 2666 Fix invalid xml on web service output with xml format (merge from trunk to branch 2.4)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/include/ws_protocols/rest_encoder.php

    r12922 r16075  
    6060    $this->_indentLevel++; 
    6161    $this->_indent(); 
     62                $diff = ord($name[0])-ord('0'); 
     63                if ($diff>=0 && $diff<=9) 
     64                { 
     65                        $name='_'.$name; 
     66                } 
    6267    $this->_output( '<'.$name ); 
    6368    $this->_lastTagOpen = true; 
Note: See TracChangeset for help on using the changeset viewer.