*
* @license http://nucleuscms.org/license.txt GNU General Public License
* @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: skinie.php,v 1.7 2007-02-04 06:28:46 kimitake Exp $
- * @version $NucleusJP: skinie.php,v 1.6 2006/07/20 08:01:52 kimitake Exp $
+ * @version $Id: skinie.php,v 1.10 2008-02-08 09:31:22 kimitake Exp $
+ * @version $NucleusJP: skinie.php,v 1.9.2.1 2007/09/05 07:46:30 kimitake Exp $
*/
class SKINIMPORT {
* Called by XML parser for each new start element encountered
*/
function startElement($parser, $name, $attrs) {
- if ($this->debug) echo 'START: ', $name, '<br />';
+ foreach($attrs as $key=>$value) $attrs[$key]=htmlspecialchars($value,ENT_QUOTES);
+
+ if ($this->debug) echo 'START: ', htmlspecialchars($name), '<br />';
switch ($name) {
case 'nucleusskin':
$this->currentPartName = $attrs['name'];
break;
default:
- echo 'UNEXPECTED TAG: ' , $name , '<br />';
+ echo 'UNEXPECTED TAG: ' , htmlspecialchars($name) , '<br />';
break;
}
* Called by the XML parser for each closing tag encountered
*/
function endElement($parser, $name) {
- if ($this->debug) echo 'END: ', $name, '<br />';
+ if ($this->debug) echo 'END: ', htmlspecialchars($name), '<br />';
switch ($name) {
case 'nucleusskin':
}
break;
default:
- echo 'UNEXPECTED TAG: ' , $name, '<br />';
+ echo 'UNEXPECTED TAG: ' , htmlspecialchars($name), '<br />';
break;
}
$this->clearCharacterData();