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 2001-10-26 00:05:55 +00:00
parent 7acfb18cb2
commit 60a1909f1a

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)