Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

url.format not url-encode special characters in path #8725

Closed
Antronin opened this issue Nov 14, 2014 · 2 comments
Closed

url.format not url-encode special characters in path #8725

Antronin opened this issue Nov 14, 2014 · 2 comments
Labels

Comments

@Antronin
Copy link

I have file urls served by a 3rd party server, and their paths contains "{}" characters. If I say

var specURI = url.format(url.parse(uri_with_brackets));

the specURI will contain the brackets as is. However using these URLs in browsers or in an AJAX request results in Error code 500, as the special characters should be encoded.

@jasnell
Copy link
Member

jasnell commented Jun 3, 2015

@joyent/node-coreteam ... this is fixed in v0.12 but not in v0.10. Do we want to backport?

@trevnorris
Copy link

If trivial, yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants