[Easymod-cvs] easymod/install/em_files/includes/em em_parser_xml.php,1.4,1.5
Status: Beta
Brought to you by:
wgeric
From: Eric F. <wg...@us...> - 2006-02-07 02:28:56
|
Update of /cvsroot/easymod/easymod/install/em_files/includes/em In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21538/includes/em Modified Files: em_parser_xml.php Log Message: Fixing a bug with XML parser and newlines Index: em_parser_xml.php =================================================================== RCS file: /cvsroot/easymod/easymod/install/em_files/includes/em/em_parser_xml.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** em_parser_xml.php 9 Jan 2006 00:38:39 -0000 1.4 --- em_parser_xml.php 7 Feb 2006 02:28:46 -0000 1.5 *************** *** 98,111 **** function _tag_data($parser, $tag_data) { ! if(trim($tag_data)) { ! if(isset($this->data[count($this->data)-1]['data'])) ! { ! $this->data[count($this->data)-1]['data'] .= unhtmlspecialchars($tag_data); ! } ! else ! { ! $this->data[count($this->data)-1]['data'] = unhtmlspecialchars($tag_data); ! } } } --- 98,108 ---- function _tag_data($parser, $tag_data) { ! if(isset($this->data[count($this->data)-1]['data'])) { ! $this->data[count($this->data)-1]['data'] .= unhtmlspecialchars($tag_data); ! } ! else ! { ! $this->data[count($this->data)-1]['data'] = unhtmlspecialchars($tag_data); } } |