use rewrite_relative_url() in get_feeds_from_html() instead of using that hack

This commit is contained in:
Christian Weiske 2010-11-10 23:13:34 +01:00 committed by Andrew Dolgov
parent f679105cb2
commit 923818fc8d

View file

@ -6941,11 +6941,9 @@
if ($title == '') {
$title = $entry->getAttribute('type');
}
$feedUrl = $entry->getAttribute('href');
if (strpos($feedUrl, '://') === false) {
//no protocol -> relative URL
$feedUrl = $baseUrl . $feedUrl;
}
$feedUrl = rewrite_relative_url(
$baseUrl, $entry->getAttribute('href')
);
$feedUrls[$feedUrl] = $title;
}
}