From b3dfe8bae76190ab58758e0d3ba1f7fe28cf847a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 14 Feb 2007 17:17:31 +0100 Subject: [PATCH] correctly import feed://... urls --- functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions.php b/functions.php index 1eb3ef2f..df2ec588 100644 --- a/functions.php +++ b/functions.php @@ -1938,8 +1938,14 @@ function subscribe_to_feed($link, $feed_link, $cat_id = 0) { + # check for feed:http://url $feed_link = trim(preg_replace("/^feed:/", "", $feed_link)); + # check for feed://URL + if (strstr($feed_link, "//") == 0) { + $feed_link = "http:$feed_link"; + } + if ($feed_link == "") return; if ($cat_id == "0" || !$cat_id) { -- 2.39.5