Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3c5cb7f8
Commit
3c5cb7f8
authored
Jun 24, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Perform a case sensitive match on cookie names.
parent
7e121e48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cookie.c
dlls/winhttp/cookie.c
+1
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+5
-2
No files found.
dlls/winhttp/cookie.c
View file @
3c5cb7f8
...
...
@@ -54,7 +54,7 @@ static cookie_t *find_cookie( domain_t *domain, const WCHAR *path, const WCHAR *
LIST_FOR_EACH
(
item
,
&
domain
->
cookies
)
{
cookie
=
LIST_ENTRY
(
item
,
cookie_t
,
entry
);
if
(
!
strcmpW
(
cookie
->
path
,
path
)
&&
!
strcmp
i
W
(
cookie
->
name
,
name
))
if
(
!
strcmpW
(
cookie
->
path
,
path
)
&&
!
strcmpW
(
cookie
->
name
,
name
))
{
TRACE
(
"found %s=%s
\n
"
,
debugstr_w
(
cookie
->
name
),
debugstr_w
(
cookie
->
value
));
return
cookie
;
...
...
dlls/winhttp/tests/winhttp.c
View file @
3c5cb7f8
...
...
@@ -1893,6 +1893,7 @@ static const char notokmsg[] =
static
const
char
cookiemsg
[]
=
"HTTP/1.1 200 OK
\r\n
"
"Set-Cookie: name = value
\r\n
"
"Set-Cookie: NAME = value
\r\n
"
"
\r\n
"
;
static
const
char
nocontentmsg
[]
=
...
...
@@ -2016,12 +2017,14 @@ static DWORD CALLBACK server_thread(LPVOID param)
}
if
(
strstr
(
buffer
,
"GET /cookie3"
))
{
if
(
strstr
(
buffer
,
"Cookie: name=value2; name=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
if
(
strstr
(
buffer
,
"Cookie: name=value2; NAME=value; name=value
\r\n
"
)
||
strstr
(
buffer
,
"Cookie: name=value2; name=value; NAME=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
}
if
(
strstr
(
buffer
,
"GET /cookie2"
))
{
if
(
strstr
(
buffer
,
"Cookie: name=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
if
(
strstr
(
buffer
,
"Cookie: NAME=value; name=value
\r\n
"
)
||
strstr
(
buffer
,
"Cookie: name=value; NAME=value
\r\n
"
))
send
(
c
,
okmsg
,
sizeof
(
okmsg
)
-
1
,
0
);
else
send
(
c
,
notokmsg
,
sizeof
(
notokmsg
)
-
1
,
0
);
}
else
if
(
strstr
(
buffer
,
"GET /cookie"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment