diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-27 09:19:51 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-27 09:19:59 +0100 |
commit | ea4ecf501fc83134db2201477b4cdb1806d5312c (patch) | |
tree | 3f037329e0b7dead6c97fd58182013bc3d097667 /vendor/fguillot/picofeed/lib/PicoFeed/Filter | |
parent | 790f0a0a709510092546c5ca4347bbec5f0a19c2 (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Filter')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php b/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php index 647b7352f..aa7efe4bd 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php @@ -158,6 +158,11 @@ class Tag public function removeBlacklistedTags($data) { $dom = XmlParser::getDomDocument($data); + + if ($dom === false) { + return ''; + } + $xpath = new DOMXpath($dom); $nodes = $xpath->query(implode(' | ', $this->tag_blacklist)); |