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:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user