mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
Handle GUID values that say they are a permalink but aren't a well-formed URL
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using Common.Debug;
|
using Common.Debug;
|
||||||
using Common.Xml;
|
using Common.Xml;
|
||||||
|
using System;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace FeedCenter.FeedParsers
|
namespace FeedCenter.FeedParsers
|
||||||
@@ -101,7 +102,7 @@ namespace FeedCenter.FeedParsers
|
|||||||
permaLink = (permaLinkNode == null || permaLinkNode.Value == "true");
|
permaLink = (permaLinkNode == null || permaLinkNode.Value == "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (permaLink)
|
if (permaLink && Uri.IsWellFormedUriString(feedItem.Guid, UriKind.Absolute))
|
||||||
feedItem.Link = feedItem.Guid;
|
feedItem.Link = feedItem.Guid;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user