- From: James M Snell <notifications@github.com>
- Date: Mon, 16 Jan 2017 14:36:46 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 16 January 2017 22:37:19 UTC
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