mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 20:41:27 +00:00
feedparser: properly handle nodeValue of rss channel link element (closes #692)
This commit is contained in:
@@ -114,8 +114,11 @@ class FeedParser {
|
|||||||
|
|
||||||
$link = $xpath->query("//channel/link")->item(0);
|
$link = $xpath->query("//channel/link")->item(0);
|
||||||
|
|
||||||
if ($link && $link->hasAttributes()) {
|
if ($link) {
|
||||||
$this->link = $link->getAttribute("href");
|
if ($link->getAttribute("href"))
|
||||||
|
$this->link = $link->getAttribute("href");
|
||||||
|
else if ($link->nodeValue)
|
||||||
|
$this->link = $link->nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$articles = $xpath->query("//channel/item");
|
$articles = $xpath->query("//channel/item");
|
||||||
|
|||||||
Reference in New Issue
Block a user