Bug #315600 --> Hangs while validating feed (rdf)

patch by Robert Sayre

sr=me
This commit is contained in:
scott%scott-macgregor.org 2006-01-04 00:05:08 +00:00
parent ca914e2679
commit 746b1f8110

View File

@ -195,9 +195,9 @@ FeedParser.prototype =
// Get information about the feed as a whole.
var channel = ds.GetSource(RDF_TYPE, RSS_CHANNEL, true);
aFeed.title = aFeed.title || getRDFTargetValue(ds, channel, RSS_TITLE);
aFeed.description = getRDFTargetValue(ds, channel, RSS_DESCRIPTION);
aFeed.link = getRDFTargetValue(ds, channel, RSS_LINK);
aFeed.title = aFeed.title || getRDFTargetValue(ds, channel, RSS_TITLE) || aFeed.url;
aFeed.description = getRDFTargetValue(ds, channel, RSS_DESCRIPTION) || "";
aFeed.link = getRDFTargetValue(ds, channel, RSS_LINK) || aFeed.url;
if (!aFeed.parseItems)
return parsedItems;
@ -226,6 +226,11 @@ FeedParser.prototype =
var uri = itemResource.Value;
var link = getRDFTargetValue(ds, itemResource, RSS_LINK);
// XXX
// check for bug258465 -- entities appear escaped
// in the value returned by getRDFTargetValue when they shouldn't
//debug("link comparison\n" + " uri: " + uri + "\nlink: " + link);
item.url = link || uri;
item.id = item.url;
item.description = getRDFTargetValue(ds, itemResource, RSS_DESCRIPTION);