Closes GH-711 URL parse more safely
authorisaacs <i@izs.me>
Sun, 27 Feb 2011 18:21:23 +0000 (10:21 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 28 Feb 2011 01:17:40 +0000 (17:17 -0800)
commitd664bf376d1071b4418f0a71cd5ed22daabb9f6f
treee5e9c0d6f4b89f35ac2b99a26da58897a5eb80d0
parent3599c71dae1b293b712320afbd7e3961b056d458
Closes GH-711 URL parse more safely

This does 3 things:

1. Delimiters and "unwise" characters are never included in the
   hostname or path.
2. url.format will sanitize string URLs that are passed to it.
3. The parsed url's 'href' member will be the sanitized url, which may
   not match the argument to url.parse.
lib/url.js
test/simple/test-url.js