Fixed URI encoding of reserved characters (Issue #369).
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Previously, util.requote_path would unquote and requote all characters, causing reserved characters to become encoded (changing the semantics of the URI). Now, it has special code for unquoting just the unreserved characters, then quotes only illegal characters. This ensures that illegal characters are fixed, and URIs are normalised, but reserved characters do not erroneously become quoted. Test case test_session_with_escaped_url now passes.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+27 added−1 removed
- other:+27 added−1 removed