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
1e0827f6
Commit
1e0827f6
authored
Dec 15, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Allow ' ' in hostname and password in UrlGetPart.
parent
c23b0b0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
url.c
dlls/shlwapi/tests/url.c
+8
-0
url.c
dlls/shlwapi/url.c
+4
-2
No files found.
dlls/shlwapi/tests/url.c
View file @
1e0827f6
...
...
@@ -519,6 +519,9 @@ static void test_url_part(const char* szUrl, DWORD dwPart, DWORD dwFlags, const
static
void
test_UrlGetPart
(
void
)
{
const
char
*
file_url
=
"file://h o s t/c:/windows/file"
;
const
char
*
http_url
=
"http://user:pass 123@www.wine hq.org"
;
CHAR
szPart
[
INTERNET_MAX_URL_LENGTH
];
DWORD
dwSize
;
HRESULT
res
;
...
...
@@ -544,6 +547,11 @@ static void test_UrlGetPart(void)
test_url_part
(
TEST_URL_3
,
URL_PART_PASSWORD
,
0
,
"bar"
);
test_url_part
(
TEST_URL_3
,
URL_PART_SCHEME
,
0
,
"http"
);
test_url_part
(
TEST_URL_3
,
URL_PART_QUERY
,
0
,
"?query=x&return=y"
);
test_url_part
(
file_url
,
URL_PART_HOSTNAME
,
0
,
"h o s t"
);
test_url_part
(
http_url
,
URL_PART_HOSTNAME
,
0
,
"www.wine hq.org"
);
test_url_part
(
http_url
,
URL_PART_PASSWORD
,
0
,
"pass 123"
);
}
/* ########################### */
...
...
dlls/shlwapi/url.c
View file @
1e0827f6
...
...
@@ -1856,7 +1856,8 @@ static LPCWSTR URL_ScanID(LPCWSTR start, LPDWORD size, WINE_URL_SCAN_TYPE type)
(
*
start
==
'_'
)
||
(
*
start
==
'+'
)
||
(
*
start
==
'-'
)
||
(
*
start
==
'.'
))
{
(
*
start
==
'.'
)
||
(
*
start
==
' '
))
{
start
++
;
(
*
size
)
++
;
}
else
if
(
*
start
==
'%'
)
{
...
...
@@ -1886,7 +1887,8 @@ static LPCWSTR URL_ScanID(LPCWSTR start, LPDWORD size, WINE_URL_SCAN_TYPE type)
while
(
cont
)
{
if
(
isalnumW
(
*
start
)
||
(
*
start
==
'-'
)
||
(
*
start
==
'.'
)
)
{
(
*
start
==
'.'
)
||
(
*
start
==
' '
)
)
{
start
++
;
(
*
size
)
++
;
}
...
...
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