99235 - Bogus URL's added to urlbar history will corrupt localstore.rdf (patch by jrgm), r=jag, sr=hewitt

This commit is contained in:
hewitt%netscape.com 2006-09-14 06:00:11 +00:00
parent 2cfa471057
commit 6c7f5c4312

View File

@ -148,6 +148,8 @@ function addToUrlbarHistory()
var urlToAdd = gURLBar.value;
if (!urlToAdd)
return;
if (urlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs
return;
if (localstore) {
var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history"));
if (!entries)