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 18:53:04 +00:00
Родитель f6127b63fa
Коммит 03d6200a7e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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, "