mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
99235 - Bogus URL's added to urlbar history will corrupt localstore.rdf (patch by jrgm), r=jag, sr=hewitt
This commit is contained in:
parent
7acfb18cb2
commit
60a1909f1a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user