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

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@221583 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2007-03-08 22:19:59 +00:00
parent c830bf0254
commit 06bbc13732
2 changed files with 6 additions and 3 deletions

View File

@@ -248,8 +248,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);

View File

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