Kaydet (Commit) 8b94b1c7 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Added test for patch #103473: test an unquoted cookie value containing '='

üst 71534606
......@@ -10,6 +10,10 @@ Set-Cookie: chips=ahoy;
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
keebler 'E=mc2; L="Loves"; fudge=\n;' 'E=mc2; L="Loves"; fudge=\n;'
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
<SimpleCookie: keebler='E=mc2'>
Set-Cookie: keebler=E=mc2;
keebler 'E=mc2' 'E=mc2'
Set-Cookie: keebler=E=mc2;
Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
<SCRIPT LANGUAGE="JavaScript">
......
......@@ -10,6 +10,9 @@ cases = [
('chips=ahoy; vienna=finger', {'chips':'ahoy', 'vienna':'finger'}),
('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;";',
{'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}),
# Check illegal cookies that have an '=' char in an unquoted value
('keebler=E=mc2;', {'keebler' : 'E=mc2'})
]
for data, dict in cases:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment