projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6220a4
)
PHP8
author
Alan
<alan@roojs.com>
Mon, 26 Feb 2024 02:54:50 +0000
(10:54 +0800)
committer
Alan
<alan@roojs.com>
Mon, 26 Feb 2024 02:54:50 +0000
(10:54 +0800)
XML/Parser.php
patch
|
blob
|
history
diff --git
a/XML/Parser.php
b/XML/Parser.php
index
4040577
..
3a3285e
100644
(file)
--- a/
XML/Parser.php
+++ b/
XML/Parser.php
@@
-370,7
+370,7
@@
class XML_Parser extends PEAR
xml_parser_set_option($xp, XML_OPTION_CASE_FOLDING, $this->folding);
return true;
}
- if (!in_array(strtoupper($this->srcenc), $this->_validEncodings)) {
+ if (!
empty($this->srcenc) && !
in_array(strtoupper($this->srcenc), $this->_validEncodings)) {
return $this->raiseError('invalid source encoding',
XML_PARSER_ERROR_INVALID_ENCODING);
}