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
8e307b2e
Commit
8e307b2e
authored
Jul 07, 2022
by
Julian Klemann
Committed by
Alexandre Julliard
Jul 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.sys: Do not add URLs with query parameters to queue.
parent
296852b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
http.c
dlls/http.sys/http.c
+2
-0
httpapi.c
dlls/httpapi/tests/httpapi.c
+4
-0
No files found.
dlls/http.sys/http.c
View file @
8e307b2e
...
...
@@ -729,6 +729,8 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
return
STATUS_INVALID_PARAMETER
;
if
(
!
(
addr
.
sin_port
=
htons
(
strtol
(
strchr
(
params
->
url
+
7
,
':'
)
+
1
,
&
endptr
,
10
)))
||
*
endptr
!=
'/'
)
return
STATUS_INVALID_PARAMETER
;
if
(
strchr
(
params
->
url
,
'?'
))
return
STATUS_INVALID_PARAMETER
;
if
(
!
(
url
=
malloc
(
strlen
(
params
->
url
)
+
1
)))
return
STATUS_NO_MEMORY
;
...
...
dlls/httpapi/tests/httpapi.c
View file @
8e307b2e
...
...
@@ -1210,6 +1210,10 @@ static void test_v1_relative_urls(void)
ret
=
HttpAddUrl
(
queue2
,
url2
,
NULL
);
ok
(
ret
==
ERROR_ALREADY_EXISTS
,
"Got error %u.
\n
"
,
ret
);
swprintf
(
url2
,
ARRAY_SIZE
(
url2
),
L"http://localhost:%u/barfoo?a=b"
,
port
);
ret
=
HttpAddUrl
(
queue2
,
url2
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Got error %u.
\n
"
,
ret
);
ret
=
CloseHandle
(
queue
);
ok
(
ret
,
"Failed to close queue handle, error %lu.
\n
"
,
GetLastError
());
ret
=
CloseHandle
(
queue2
);
...
...
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