We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a03390 + 2aff5f3 commit fc24e6eCopy full SHA for fc24e6e
LSS/XML2Array.php
@@ -110,6 +110,10 @@ protected static function &convert($node) {
110
if(isset($child->tagName)) {
111
$t = $child->tagName;
112
113
+ // avoid fatal error if the content looks like '<html><body>You are being <a href="https://some.url">redirected</a>.</body></html>'
114
+ if(isset($output) && !is_array($output)) {
115
+ continue;
116
+ }
117
// assume more nodes of same kind are coming
118
if(!isset($output[$t])) {
119
$output[$t] = array();
0 commit comments