url: reslove urls with . and ..
authorAmir Saboury <amir.s@acm.org>
Sat, 10 Jan 2015 03:01:32 +0000 (22:01 -0500)
committercjihrig <cjihrig@gmail.com>
Fri, 13 Feb 2015 19:05:05 +0000 (14:05 -0500)
commitfaa687b4be2cea71c545cc1bec631c164b608acd
tree47da22ea9fdd94f84a680560b18ffe99d9f614f8
parentcca8de6709ece5b4791d52a8b834da83bfb782d5
url: reslove urls with . and ..

'.' and '..' are directory specs and resolving urls with or
without the hostname with '.' and '..' should add a trailing
slash to the end of the url.

Fixes: https://github.com/joyent/node/issues/8992
PR-URL: https://github.com/iojs/io.js/pull/278
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
lib/url.js
test/parallel/test-url.js