Re: [whatwg/url] Should 'C%3A' or 'C%7C' be interpreted as 'C:' and 'C|'? (#210)

Indeed, but windows drive letters are also already special cased in the URL parsing algorithm and anyone processing the URL appropriately (by decoding any pct-encoded characters prior to using it) can end up with rather unexpected results if they are not being careful.

```js
> var m = new url.URL('file://c%3a/%2e/a/%2e%2e/b')
undefined
> m
URL {
  href: file://c:/b
  protocol: file:
  hostname: c:
  pathname: /b
}

> var m = new url.URL('file:///c%3a/%2e/a/%2e%2e/b')
undefined
> m
URL {
  href: file://c:/b
  protocol: file:
  pathname: /c%3a/b
}
```

I believe it at least warrants some additional consideration.

-- 
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/210#issuecomment-272977755

Received on Monday, 16 January 2017 22:37:19 UTC