opnsense-ports/net/phpldapadmin/files/patch-lib_xml2array.php
Franco Fichtner 792de5bda9 */*: sync with upstream
Taken from: FreeBSD
2022-12-06 09:38:46 +01:00

20 lines
573 B
PHP

--- 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;