mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 419642 ? WARNING: Unsafe use of LIKE detected! (for ondrej@allpeers.com, r=dietrich)
This commit is contained in:
parent
708034734a
commit
f6d49a16aa
@ -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, "
|
||||
|
Loading…
Reference in New Issue
Block a user