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
Родитель 55ae990692
Коммит b378cfd80c
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

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