Skip to content

Fix uncaught exception in http_server_asio.cpp for invalid URL path#634

Merged
ras0219-msft merged 1 commit intomicrosoft:masterfrom
garethsb:http_server_asio-invalid_unicode
Dec 23, 2017
Merged

Fix uncaught exception in http_server_asio.cpp for invalid URL path#634
ras0219-msft merged 1 commit intomicrosoft:masterfrom
garethsb:http_server_asio-invalid_unicode

Conversation

@garethsb
Copy link
Copy Markdown
Contributor

URLs that contain invalid UTF-8 characters, either before or after percent-decoding, can result in std::range_error, which the ASIO-based http_listener does not handle.

E.g. "/%f8%80%80%80%ae%f8%80%80%80%ae/%f8%80%80%80%ae%f8%80%80%80%ae/.../boot.ini".

@ras0219-msft ras0219-msft merged commit 6ebb942 into microsoft:master Dec 23, 2017
@ras0219-msft
Copy link
Copy Markdown
Contributor

Looks good, thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants