Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0d9dcf5c
Commit
0d9dcf5c
authored
Jun 20, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Ignore unknown attributes in get_cookie.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a7bd03d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
cookie.c
dlls/wininet/cookie.c
+4
-1
internet.c
dlls/wininet/tests/internet.c
+1
-1
No files found.
dlls/wininet/cookie.c
View file @
0d9dcf5c
...
...
@@ -911,6 +911,7 @@ DWORD set_cookie(substr_t domain, substr_t path, substr_t name, substr_t data, D
static
const
WCHAR
szSecure
[]
=
{
's'
,
'e'
,
'c'
,
'u'
,
'r'
,
'e'
};
static
const
WCHAR
szHttpOnly
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
'o'
,
'n'
,
'l'
,
'y'
};
static
const
WCHAR
szVersion
[]
=
{
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
};
static
const
WCHAR
max_ageW
[]
=
{
'm'
,
'a'
,
'x'
,
'-'
,
'a'
,
'g'
,
'e'
,
'='
};
/* Skip ';' */
if
(
data
.
len
)
...
...
@@ -976,9 +977,11 @@ DWORD set_cookie(substr_t domain, substr_t path, substr_t name, substr_t data, D
substr_skip
(
&
data
,
len
);
FIXME
(
"version not handled (%s)
\n
"
,
debugstr_wn
(
data
.
str
,
data
.
len
));
}
else
if
(
data
.
len
>=
(
len
=
sizeof
(
max_ageW
)
/
sizeof
(
WCHAR
))
&&
!
strncmpiW
(
data
.
str
,
max_ageW
,
len
))
{
/* Native doesn't support Max-Age attribute. */
WARN
(
"Max-Age ignored
\n
"
);
}
else
if
(
data
.
len
)
{
FIXME
(
"Unknown additional option %s
\n
"
,
debugstr_wn
(
data
.
str
,
data
.
len
));
break
;
}
substr_skip
(
&
data
,
end_ptr
-
data
.
str
);
...
...
dlls/wininet/tests/internet.c
View file @
0d9dcf5c
...
...
@@ -388,7 +388,7 @@ static void test_complicated_cookie(void)
/* Technically illegal! domain should require 2 dots, but native wininet accepts it */
ret
=
InternetSetCookieA
(
"http://www.example.com"
,
NULL
,
"E=F; domain=example.com"
);
ok
(
ret
==
TRUE
,
"InternetSetCookie failed
\n
"
);
ret
=
InternetSetCookieA
(
"http://www.example.com"
,
NULL
,
"G=H; domain=.example.com; path=/foo"
);
ret
=
InternetSetCookieA
(
"http://www.example.com"
,
NULL
,
"G=H; domain=.example.com;
invalid=attr;
path=/foo"
);
ok
(
ret
==
TRUE
,
"InternetSetCookie failed
\n
"
);
ret
=
InternetSetCookieA
(
"http://www.example.com/bar.html"
,
NULL
,
"I=J; domain=.example.com"
);
ok
(
ret
==
TRUE
,
"InternetSetCookie failed
\n
"
);
...
...
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