зеркало из https://github.com/mozilla/pjs.git
Bug #315600 --> Hangs while validating feed (rdf)
patch by Robert Sayre sr=me
This commit is contained in:
Родитель
55ae990692
Коммит
b378cfd80c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче