Bug #347922 --> Adding ATOM feed hangs forever for validation. Patch by Magnus Melin <mkmelin+mozilla@iki.fi> sr=mscott

This commit is contained in:
scott%scott-macgregor.org 2007-03-08 22:19:53 +00:00
Родитель 410f1cd4ea
Коммит d0f70702fa
2 изменённых файлов: 6 добавлений и 3 удалений

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

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