mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 01:01:52 +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
2cfa471057
commit
6c7f5c4312
@ -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