blob: 4131e1c5d6d32daca6cd3d9b61d1c2fa81ed8fa9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lib/xml2array.php.orig 2021-12-12 02:35:51 UTC
+++ lib/xml2array.php
@@ -59,7 +59,7 @@ class xml2array {
}
private function tagOpen($parser,$name,$attrs) {
- $name = strtolower($name);
+ $name = strtolower((string) $name);
if (isset($this->stack_ref[$name])) {
if (! isset($this->stack_ref[$name][0])) {
@@ -86,7 +86,7 @@ class xml2array {
}
private function tagData($parser,$tagData) {
- if (trim($tagData) != '') {
+ if (trim((string) $tagData) != '') {
if (isset($this->stack_ref['#text']))
$this->stack_ref['#text'] .= $tagData;
|