Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Accept non-ASCII octets in percent-decoding #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2018
Merged

Accept non-ASCII octets in percent-decoding #119

merged 3 commits into from
Oct 18, 2018

Conversation

mtrenkmann
Copy link
Contributor

This PR fixes #118. All unit tests passed.

  • Removed code that throws when an octet outside ASCII is detected.
  • Changed a unit test that asserts decoding %80 does not throw.
  • Added a unit test that asserts decoding some UTF-8 does not throw.

@glynos glynos merged commit 0bfbd14 into cpp-netlib:master Oct 18, 2018
@glynos
Copy link
Member

glynos commented Oct 18, 2018

Many thanks for the report and for the PR. I can confirm that the does what it's expected to do.

FYI, I developed a "successor" to this URI implementation, based on the WhatWG spec. The percent encoding implementation there behaves the same way as your fix.

@mtrenkmann
Copy link
Contributor Author

Thanks for merging. I already have an eye on your url project (looks promising), but I cannot switch at the moment since I am using cppnetlib which depends on network::uri.

@mtrenkmann mtrenkmann deleted the fix_percent_decoding_for_non_ascii_chars branch October 18, 2018 10:52
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.

Percent-decoding does not accept non-ASCII octets
2 participants