зеркало из https://github.com/mozilla/gecko-dev.git
Bug #347922 --> Adding ATOM feed hangs forever for validation. Patch by Magnus Melin <mkmelin+mozilla@iki.fi> sr=mscott
This commit is contained in:
Родитель
410f1cd4ea
Коммит
d0f70702fa
|
@ -251,8 +251,11 @@ Feed.prototype =
|
|||
return title;
|
||||
},
|
||||
|
||||
set title (aNewTitle)
|
||||
set title (aNewTitle)
|
||||
{
|
||||
if (!aNewTitle)
|
||||
return;
|
||||
|
||||
var ds = getSubscriptionsDS(this.server);
|
||||
aNewTitle = rdf.GetLiteral(aNewTitle);
|
||||
var old_title = ds.GetTarget(this.resource, DC_TITLE, true);
|
||||
|
|
|
@ -497,9 +497,9 @@ FeedParser.prototype =
|
|||
return null;
|
||||
},
|
||||
|
||||
stripTags: function(someHTML)
|
||||
stripTags: function(someHTML)
|
||||
{
|
||||
return someHTML.replace(/<[^>]+>/g,"");
|
||||
return someHTML ? someHTML.replace(/<[^>]+>/g,"") : someHTML;
|
||||
},
|
||||
|
||||
xmlUnescape: function(s)
|
||||
|
|
Загрузка…
Ссылка в новой задаче