mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Fix relative Atom paths (for GitHub at least, might break others?)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using Common.Debug;
|
using System;
|
||||||
|
using Common.Debug;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace FeedCenter.FeedParsers
|
namespace FeedCenter.FeedParsers
|
||||||
@@ -113,8 +114,9 @@ namespace FeedCenter.FeedParsers
|
|||||||
|
|
||||||
if (link.StartsWith("/"))
|
if (link.StartsWith("/"))
|
||||||
{
|
{
|
||||||
link = Feed.Link + link;
|
var uri = new Uri(Feed.Link);
|
||||||
link = link.Replace("//", "/");
|
|
||||||
|
link = uri.Scheme + "://" + uri.Host + link;
|
||||||
}
|
}
|
||||||
|
|
||||||
feedItem.Link = link;
|
feedItem.Link = link;
|
||||||
|
|||||||
Reference in New Issue
Block a user