Handle GUID values that say they are a permalink but aren't a well-formed URL

This commit is contained in:
2014-10-25 08:12:24 -04:00
parent ca40e7237b
commit e52767ca99

View File

@@ -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;