summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-02-27 09:19:51 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-02-27 09:19:59 +0100
commitea4ecf501fc83134db2201477b4cdb1806d5312c (patch)
tree3f037329e0b7dead6c97fd58182013bc3d097667 /vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php
parent790f0a0a709510092546c5ca4347bbec5f0a19c2 (diff)
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Filter/Tag.php5
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));