1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:35:55 +00:00

feedparser: properly handle nodeValue of rss channel link element (closes #692)

This commit is contained in:
Andrew Dolgov
2013-05-23 20:32:54 +04:00
parent 610fe11535
commit 1874c8d6df

View File

@@ -114,8 +114,11 @@ class FeedParser {
$link = $xpath->query("//channel/link")->item(0);
if ($link && $link->hasAttributes()) {
$this->link = $link->getAttribute("href");
if ($link) {
if ($link->getAttribute("href"))
$this->link = $link->getAttribute("href");
else if ($link->nodeValue)
$this->link = $link->nodeValue;
}
$articles = $xpath->query("//channel/item");