kopia lustrzana https://github.com/friendica/friendica
Merge pull request #642 from oohlaf/master
Ignore invalid tokens when scraping an URLpull/644/merge
commit
631085462e
|
@ -3039,7 +3039,11 @@ class HTML5_TreeBuilder {
|
|||
}
|
||||
|
||||
private function insertElement($token, $append = true) {
|
||||
$el = $this->dom->createElementNS(self::NS_HTML, $token['name']);
|
||||
$el = $this->dom->createElementNS(self::NS_HTML, $token['name']);
|
||||
if ($el == false) {
|
||||
logger('insertElement(): ignoring invalid token='.$token['name']);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($token['attr'])) {
|
||||
foreach($token['attr'] as $attr) {
|
||||
|
|
Ładowanie…
Reference in New Issue