From: wltb Date: Thu, 26 Sep 2013 22:13:55 +0000 (+0200) Subject: Feedparser: Add important check for unknown feed type detection X-Git-Tag: 1.11~58^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2c6f3c2eb304c227bbb1d4bbbf1df8a9879715b1;p=tt-rss.git Feedparser: Add important check for unknown feed type detection --- diff --git a/classes/feedparser.php b/classes/feedparser.php index 4eaeb242..1c97e496 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -93,7 +93,7 @@ class FeedParser { $root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)"); - if ($root) { + if ($root && $root->length > 0) { $root = $root->item(0); if ($root) {