Changeset 16074


Ignore:
Timestamp:
Jun 27, 2012, 6:08:55 AM (8 years ago)
Author:
rvelices
Message:

bug 2666 Fix invalid xml on web service output with xml format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_protocols/rest_encoder.php

    r12922 r16074  
    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.