bug 2666 Fix invalid xml on web service output with xml format (merge from trunk to branch 2.4)
git-svn-id: http://piwigo.org/svn/branches/2.4@16075 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9937863533
commit
9f809077e0
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ class PwgXmlWriter
|
||||||
}
|
}
|
||||||
$this->_indentLevel++;
|
$this->_indentLevel++;
|
||||||
$this->_indent();
|
$this->_indent();
|
||||||
|
$diff = ord($name[0])-ord('0');
|
||||||
|
if ($diff>=0 && $diff<=9)
|
||||||
|
{
|
||||||
|
$name='_'.$name;
|
||||||
|
}
|
||||||
$this->_output( '<'.$name );
|
$this->_output( '<'.$name );
|
||||||
$this->_lastTagOpen = true;
|
$this->_lastTagOpen = true;
|
||||||
array_push( $this->_elementStack, $name);
|
array_push( $this->_elementStack, $name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue