mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -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.Xml;
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace FeedCenter.FeedParsers
|
||||
@@ -101,7 +102,7 @@ namespace FeedCenter.FeedParsers
|
||||
permaLink = (permaLinkNode == null || permaLinkNode.Value == "true");
|
||||
}
|
||||
|
||||
if (permaLink)
|
||||
if (permaLink && Uri.IsWellFormedUriString(feedItem.Guid, UriKind.Absolute))
|
||||
feedItem.Link = feedItem.Guid;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user