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

Fix encoding of Href query and fragment #385

Closed
wants to merge 1 commit into from
Closed

Conversation

mickael-menu
Copy link
Member

Historically we percent-decoded HREFs because we can have an EPUB with resources containing, for example, a percent character. The way it was implemented caused an issue with http:// HREF with a fragment or query param containing special characters (e.g. % or #).

To fix this, I adjusted the HREF parsing to not percent-decode the path but not the fragment and query params.

@mickael-menu mickael-menu requested a review from qnga August 30, 2023 14:57
@mickael-menu mickael-menu marked this pull request as draft August 31, 2023 07:37
@mickael-menu mickael-menu removed the request for review from qnga August 31, 2023 07:37
@mickael-menu
Copy link
Member Author

I'm preparing another PR that might significantly change Href.

@mickael-menu
Copy link
Member Author

Superseded by #388

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.

1 participant