Bug 419642 ? WARNING: Unsafe use of LIKE detected! (for ondrej@allpeers.com, r=dietrich)

This commit is contained in:
dietrich@mozilla.com 2008-03-07 10:53:04 -08:00
parent 708034734a
commit f6d49a16aa

View File

@ -3064,7 +3064,7 @@ PlacesSQLQueryBuilder::SelectAsSite()
"WHERE EXISTS(SELECT '*' "
"FROM moz_places "
"WHERE hidden <> 1 AND rev_host = '.' "
"AND url LIKE 'file://%%') "
"AND url BETWEEN 'file://' AND 'file:/~') "
"UNION ALL "
"SELECT DISTINCT null, "
"'place:type=%ld&sort=%ld&domain='||host||'&domainIsHost=true', "
@ -3092,7 +3092,7 @@ PlacesSQLQueryBuilder::SelectAsSite()
"FROM moz_places h "
"JOIN moz_historyvisits v ON h.id = v.place_id "
"WHERE h.hidden <> 1 AND h.rev_host = '.' "
"AND h.url LIKE 'file://%%' "
"AND h.url BETWEEN 'file://' AND 'file:/~' "
"AND v.visit_type NOT IN (0,4) {ADDITIONAL_CONDITIONS} ) "
"UNION ALL "
"SELECT DISTINCT null, "