er, for real this time...

git-svn-id: svn://10.0.0.236/trunk@148383 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dwitte%stanford.edu
2003-10-26 01:17:13 +00:00
parent 46206d0d8d
commit bf01efe92a

View File

@@ -627,8 +627,10 @@ nsCookieService::GetCookieStringFromHttp(nsIURI *aHostURI,
}
currentDot = nextDot;
nextDot = strchr(currentDot + 1, '.');
}
if (currentDot)
nextDot = strchr(currentDot + 1, '.');
} while (currentDot);
// return cookies in order of path length; longest to shortest.
// this is required per RFC2109.
@@ -2131,7 +2133,7 @@ nsCookieService::CountCookiesFromHost(nsCookie *aCookie,
const char *currentDot = hostWithDot.get();
const char *nextDot = currentDot + 1;
while (nextDot) {
do {
nsCookieEntry *entry = mHostTable.GetEntry(currentDot);
for (nsListIter iter(entry); iter.current; ++iter) {
// only count session or non-expired cookies
@@ -2147,8 +2149,10 @@ nsCookieService::CountCookiesFromHost(nsCookie *aCookie,
}
currentDot = nextDot;
nextDot = strchr(currentDot + 1, '.');
}
if (currentDot)
nextDot = strchr(currentDot + 1, '.');
} while (currentDot);
return countFromHost;
}