mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 18:51:29 +00:00
correctly import feed://... urls
This commit is contained in:
@@ -1938,8 +1938,14 @@
|
|||||||
|
|
||||||
function subscribe_to_feed($link, $feed_link, $cat_id = 0) {
|
function subscribe_to_feed($link, $feed_link, $cat_id = 0) {
|
||||||
|
|
||||||
|
# check for feed:http://url
|
||||||
$feed_link = trim(preg_replace("/^feed:/", "", $feed_link));
|
$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 ($feed_link == "") return;
|
||||||
|
|
||||||
if ($cat_id == "0" || !$cat_id) {
|
if ($cat_id == "0" || !$cat_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user