Skip to content

Commit

Permalink
Fix endless recursive call on empty DOMElements
Browse files Browse the repository at this point in the history
Occurred when it found an <iframe /> element.
  • Loading branch information
storeman committed May 27, 2015
1 parent 8a0fa75 commit ddd0d0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ParsedownExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ protected function processTag($document, $element) # recursive
foreach ($element->childNodes as $Node){
$elementText .= $this->processText($document, $Node);
}
}elseif($element instanceof DOMElement){
$elementText = $document->saveXML($element);
}else{
$elementText = $this->processText($document, $element);
}
Expand Down

0 comments on commit ddd0d0b

Please sign in to comment.