Bug 206022: [cookies] parser doesn't allow spaces in NAME token.

makes the cookie parser tolerant of spaces in the token name strings, which some sites rely on.

r=mvl, sr=alecf, a=asa.
This commit is contained in:
dwitte%stanford.edu 2003-05-22 20:41:17 +00:00
Родитель 350502ab16
Коммит 97883af4de
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -479,7 +479,7 @@ main(PRInt32 argc, char *argv[])
SetACookie(cookieService, "http://parser.test/", nsnull, "test=parser; domain=.parser.test; max-age=0", nsnull);
GetACookie(cookieService, "http://parser.test/", nsnull, getter_Copies(cookie));
rv[1] = CheckResult(cookie, MUST_BE_NULL);
SetACookie(cookieService, "http://parser.test/", nsnull, "test=\"fubar! = foo;bar\\\";\" parser; domain=.parser.test; max-age=6\nfive max-age=2.63,", nsnull);
SetACookie(cookieService, "http://parser.test/", nsnull, "test=\"fubar! = foo;bar\\\";\" parser; domain=.parser.test; max-age=6\nfive; max-age=2.63,", nsnull);
GetACookie(cookieService, "http://parser.test/", nsnull, getter_Copies(cookie));
rv[2] = CheckResult(cookie, MUST_CONTAIN, "test=\"fubar! = foo;bar\\\";\"");
rv[3] = CheckResult(cookie, MUST_CONTAIN, "five");