Skip to content
Snippets Groups Projects
Commit 1874c8d6 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

parent 610fe115
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment