зеркало из https://github.com/mozilla/pjs.git
Bug 419642 ? WARNING: Unsafe use of LIKE detected! (for ondrej@allpeers.com, r=dietrich)
This commit is contained in:
Родитель
f6127b63fa
Коммит
03d6200a7e
|
@ -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, "
|
||||
|
|
Загрузка…
Ссылка в новой задаче