Please sign in to comment.
Ignore valid/invalid percent encodings in URI PathAndQuery
Previously the parsing (`from_shared`) checked for hex digits after a `%` but the HEX_DIGIT array included additional characters beyond valid hex ranges (like 'Z' and '~') By comparison the WHATWG URL standard (https://url.spec.whatwg.org/) and implementations like the *rust-url* crate simply pass invalid percent encodings through unmodified (only treating these as a soft SyntaxViolation warning). Since `Uri` doesn't attempt any normalization of percent-encoded values, simply treat '%' as a valid path or query character, with no special meaning for the subsequent characters. The '%' character is *not* added to URI_CHARS because we still don't want to accept it, at least in a host name component of the authority.
- Loading branch information...