summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 1eb3ef2f7..df2ec5880 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) {