https://bugs.winehq.org/show_bug.cgi?id=45694
Bug ID: 45694 Summary: WinHttpOpenRequest: unsafe characters are not escaped Product: Wine Version: 3.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winhttp Assignee: wine-bugs@winehq.org Reporter: ebissonnette@genetec.com Distribution: ---
WinHttpOpenRequest does not escape unsafe characters in LPCWSTR object.
An application therefore fails to issue a valid HTTP request when it passes a path that contains unsafe characters, such as a space, in the query part of the URL.
For example : WinHttpOpenRequest(hConnect, NULL, "/search.cgi?word=Some example", NULL, NULL, NULL, 0);
The resulting HTTP request contains the unsafe character. It should have been converted to "/search.cgi?word=Some%20example"
https://bugs.winehq.org/show_bug.cgi?id=45694
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Created attachment 62123 --> https://bugs.winehq.org/attachment.cgi?id=62123 patch
Needs some more testing but this should fix it.
https://bugs.winehq.org/show_bug.cgi?id=45694
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |498042e0eeac12d6ee99a1cbada | |2ef2bd7b05131 Resolution|--- |FIXED
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Should be fixed by 498042e0eeac12d6ee99a1cbada2ef2bd7b05131.
https://bugs.winehq.org/show_bug.cgi?id=45694
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.15.