Skip to content
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

encode percent signs #16

Merged
merged 2 commits into from
Nov 22, 2023
Merged

encode percent signs #16

merged 2 commits into from
Nov 22, 2023

Conversation

matt-phylum
Copy link
Collaborator

Overview

Surprisingly, the percent_encoding crate does not percent encode percent signs and therefore if you just percent encode some bytes and try to decode them, you may get a different result when decoding. This PR ensures that percent signs are properly escaped when serializing PURLs.

Checklist

  • Does this PR have an associated issue?
  • Have you ensured that you have met the expected acceptance criteria?
  • Have you created sufficient tests?

Issue

Closes #15

@matt-phylum matt-phylum merged commit 3d21fd1 into main Nov 22, 2023
6 checks passed
@matt-phylum matt-phylum deleted the matt/percent branch November 22, 2023 16:13
@matt-phylum matt-phylum mentioned this pull request Apr 26, 2024
3 tasks
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 signs are not percent encoded
3 participants