Commit 336b0274 authored by Rich Trott's avatar Rich Trott
Browse files

url: return valid file: urls fom url.format()

`file:` URLs that do not start with `file://` are invalid. Browsers
convert `file:/etc/passwd` to `file:///etc/passwd`. This is also what
the docs indicate we are doing, but we're not.

PR-URL: https://github.com/nodejs/node/pull/7234
Fixes: https://github.com/nodejs/node/issues/3361


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
parent 874839c6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment