diff options
author | Andrew Dolgov <[email protected]> | 2011-08-01 13:06:25 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-08-01 13:06:25 +0400 |
commit | 68a57364f4928bcd614231be4176524f4d7ea155 (patch) | |
tree | 7a0a4c0bd821bbc10648d01d882babcf97b1aaf7 | |
parent | 1aea205cc1defa6b2948e40afa7839136ef94d4f (diff) |
properly handle relative link elements for feed and articles (closes #358)
-rw-r--r-- | functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 0707960da..21693c500 100644 --- a/functions.php +++ b/functions.php @@ -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);; |