use rewrite_relative_url() in get_feeds_from_html() instead of using that hack
This commit is contained in:
parent
f679105cb2
commit
923818fc8d
|
@ -6941,11 +6941,9 @@
|
||||||
if ($title == '') {
|
if ($title == '') {
|
||||||
$title = $entry->getAttribute('type');
|
$title = $entry->getAttribute('type');
|
||||||
}
|
}
|
||||||
$feedUrl = $entry->getAttribute('href');
|
$feedUrl = rewrite_relative_url(
|
||||||
if (strpos($feedUrl, '://') === false) {
|
$baseUrl, $entry->getAttribute('href')
|
||||||
//no protocol -> relative URL
|
);
|
||||||
$feedUrl = $baseUrl . $feedUrl;
|
|
||||||
}
|
|
||||||
$feedUrls[$feedUrl] = $title;
|
$feedUrls[$feedUrl] = $title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue