mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 02:21:29 +00:00
properly handle relative link elements for feed and articles (closes #358)
This commit is contained in:
@@ -696,6 +696,8 @@
|
||||
$site_url = $rss->channel["link"];
|
||||
}
|
||||
|
||||
$site_url = rewrite_relative_url($fetch_url, $site_url);
|
||||
|
||||
if ($debug_enabled) {
|
||||
_debug("update_rss_feed: checking favicon...");
|
||||
}
|
||||
@@ -908,8 +910,11 @@
|
||||
if (!$entry_link) $entry_link = $item["link"];
|
||||
}
|
||||
|
||||
$entry_link = rewrite_relative_url($site_url, $entry_link);
|
||||
|
||||
if ($debug_enabled) {
|
||||
_debug("update_rss_feed: title $entry_title");
|
||||
_debug("update_rss_feed: link $entry_link");
|
||||
}
|
||||
|
||||
if (!$entry_title) $entry_title = date("Y-m-d H:i:s", $entry_timestamp);;
|
||||
|
||||
Reference in New Issue
Block a user