Skip to content

Fix quoting in uri_to_iri and iri_to_uri - #1433

Merged
davidism merged 3 commits into
masterfrom
uri_iri_quoting
Jan 12, 2019
Merged

Fix quoting in uri_to_iri and iri_to_uri#1433
davidism merged 3 commits into
masterfrom
uri_iri_quoting

Conversation

@davidism

Copy link
Copy Markdown
Member

uri_to_iri more closely matches the process in RFC 3987. All ASCII bytes that aren't in unreserved should remain quoted. Any bytes that do not decode to UTF-8 (or whatever charset is passed in Werkzeug's case) are re-quoted rather than being replaced. Closes #1356.

iri_to_uri does not quote any unquoted reserved characters in the URL, rather than just the subset it preserved before. Closes #402.

all reserved and invalid characters in are left quoted
unquote caches conversion maps
@davidism davidism added this to the 0.15 milestone Jan 12, 2019
reserved characters are not quoted
@davidism
davidism merged commit ce162fc into master Jan 12, 2019
@davidism
davidism deleted the uri_iri_quoting branch January 12, 2019 19:11
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uri_to_iri incorrectly handles %20 Some clarification on iri_to_uri

1 participant