From 923818fc8dac01f18b9ac269ab6dc10851774959 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 10 Nov 2010 23:13:34 +0100 Subject: [PATCH] use rewrite_relative_url() in get_feeds_from_html() instead of using that hack --- functions.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index a52dafdd..cd6fafd1 100644 --- a/functions.php +++ b/functions.php @@ -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; } } -- 2.39.5