Re: [whatwg/url] Encode ' in username and password (#608)

3986 [defines userinfo](https://www.rfc-editor.org/rfc/rfc3986.html#section-3.2.1) to include `sub-delims`, which includes `'`.

~~~ abnf
userinfo    = *( unreserved / pct-encoded / sub-delims / ":" )
unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
              / "*" / "+" / "," / ";" / "="
~~~

So, it needs to be unescaped. Same for `;`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/608#issuecomment-846329500

Received on Saturday, 22 May 2021 01:39:16 UTC