cvs: pear-core /PEAR XMLParser.php
| From: | Greg Beaver | Date: | Sun, 15 May 2005 02:46:41 +0000 |
| Subject: | cvs: pear-core /PEAR XMLParser.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-31867@lists.php.net to get a copy of this message | ||
cellog Sat May 14 22:46:41 2005 EDT
Modified files:
/pear-core/PEAR XMLParser.php
Log:
extend the range of characters that will be replaced to
prevent parsing failure
http://cvs.php.net/diff.php/pear-core/PEAR/XMLParser.php?r1=1.6&r2=1.7&ty=u
Index: pear-core/PEAR/XMLParser.php
diff -u pear-core/PEAR/XMLParser.php:1.6 pear-core/PEAR/XMLParser.php:1.7
--- pear-core/PEAR/XMLParser.php:1.6 Thu May 12 17:12:53 2005
+++ pear-core/PEAR/XMLParser.php Sat May 14 22:46:40 2005
@@ -16,7 +16,7 @@
* @author Stephan Schmidt (original XML_Unserializer code)
* @copyright 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: XMLParser.php,v 1.6 2005/05/12 21:12:53 cellog Exp $
+ * @version CVS: $Id: XMLParser.php,v 1.7 2005/05/15 02:46:40 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -175,7 +175,7 @@
'ÿ' => 'ÿ',
));
// convert non-ISO-8859-1 chars to ? for safety (parser dies otherwise)
- $data = preg_replace('/[\xA0-\xFF]/', '?', $data);
+ $data = preg_replace('/[\x9E-\xFF]/', '?', $data);
return $data;
}