Skip to content

Commit ffa5b67

Browse files
committed
Fix #174 by cloning input DOMDocument instance
1 parent d2a32e3 commit ffa5b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mf2/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public function __construct($input, $url = null, $jsonMode = false) {
345345
@$doc->loadHTML(unicodeToHtmlEntities($input));
346346
}
347347
} elseif (is_a($input, 'DOMDocument')) {
348-
$doc = $input;
348+
$doc = clone $input;
349349
} else {
350350
$doc = new DOMDocument();
351351
@$doc->loadHTML('');

0 commit comments

Comments
 (0)