Bug 317839 sr=bryner Favicon service

Original committer: brettw%gmail.com
Original revision: 1.8
Original date: 2005/12/12 20:03:33
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 17:00:37 +00:00
Родитель c915768f2f
Коммит 2655d001af
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -346,8 +346,14 @@ FreeTokenList(nsVoidArray* aTokens)
nsresult nsresult
TokenizeQueryString(const nsACString& aQuery, nsVoidArray* aTokens) TokenizeQueryString(const nsACString& aQuery, nsVoidArray* aTokens)
{ {
// Strip of the "place:" prefix // Strip off the "place:" prefix
const nsCSubstring &query = Substring(aQuery, strlen("place:")); const PRUint32 prefixlen = 6; // = strlen("place:");
nsCString query;
if (aQuery.Length() > prefixlen &&
Substring(aQuery, 0, prefixlen).EqualsLiteral("place:"))
query = Substring(aQuery, prefixlen);
else
query = aQuery;
PRInt32 keyFirstIndex = 0; PRInt32 keyFirstIndex = 0;
PRInt32 equalsIndex = 0; PRInt32 equalsIndex = 0;