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
499c5317
Commit
499c5317
authored
Nov 15, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Nov 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix InternetCrackUrl parsing URLs containing a semicolon.
parent
d5e40b0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
internet.c
dlls/wininet/internet.c
+1
-3
url.c
dlls/wininet/tests/url.c
+3
-0
No files found.
dlls/wininet/internet.c
View file @
499c5317
...
...
@@ -1717,9 +1717,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl_orig, DWORD dwUrlLength_orig, DWOR
lpUC
->
nPort
=
INTERNET_INVALID_PORT_NUMBER
;
/* Parse <params> */
lpszParam
=
memchrW
(
lpszap
,
';'
,
dwUrlLength
-
(
lpszap
-
lpszUrl
));
if
(
!
lpszParam
)
lpszParam
=
memchrW
(
lpszap
,
'?'
,
dwUrlLength
-
(
lpszap
-
lpszUrl
));
lpszParam
=
memchrW
(
lpszap
,
'?'
,
dwUrlLength
-
(
lpszap
-
lpszUrl
));
if
(
!
lpszParam
)
lpszParam
=
memchrW
(
lpszap
,
'#'
,
dwUrlLength
-
(
lpszap
-
lpszUrl
));
...
...
dlls/wininet/tests/url.c
View file @
499c5317
...
...
@@ -124,6 +124,9 @@ static const crack_url_test_t crack_url_tests[] = {
{
"http://www.winehq.org?test=123"
,
0
,
4
,
INTERNET_SCHEME_HTTP
,
7
,
14
,
23
,
80
,
-
1
,
0
,
-
1
,
0
,
21
,
0
,
21
,
9
,
"http"
,
"www.winehq.org"
,
""
,
""
,
""
,
"?test=123"
},
{
"http://www.winehq.org/myscript.php;test=123"
,
0
,
4
,
INTERNET_SCHEME_HTTP
,
7
,
14
,
23
,
80
,
-
1
,
0
,
-
1
,
0
,
21
,
22
,
-
1
,
0
,
"http"
,
"www.winehq.org"
,
""
,
""
,
"/myscript.php;test=123"
,
""
},
{
"file:///C:/Program%20Files/Atmel/AVR%20Tools/STK500/STK500.xml"
,
0
,
4
,
INTERNET_SCHEME_FILE
,
-
1
,
0
,
-
1
,
0
,
-
1
,
0
,
-
1
,
0
,
7
,
55
,
-
1
,
0
,
"file"
,
""
,
""
,
""
,
"C:
\\
Program Files
\\
Atmel
\\
AVR Tools
\\
STK500
\\
STK500.xml"
,
""
},
...
...
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