This commit is contained in:
dwitte%stanford.edu 2003-11-17 15:43:51 +00:00
Родитель 28117890eb
Коммит 0434ce1a39
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -558,9 +558,7 @@ nsCookieService::GetCookieStringFromHttp(nsIURI *aHostURI,
--cookiePathLen;
}
// the cookie linked list is in order of path length; longest to shortest.
// if the nsIURI path is shorter than the cookie path, then we know the path
// isn't on the cookie path.
// if the nsIURI path is shorter than the cookie path, don't send it back
if (!StringBeginsWith(pathFromURI, Substring(cookie->Path(), 0, cookiePathLen))) {
continue;
}