diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-05 16:43:58 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-05 17:26:47 +0100 |
commit | 94e147500c5bf457c9101bda8c8020d8ff896708 (patch) | |
tree | 7cdea05267b4d7c118bab4902c8ccc76216128f3 /lib/url.js | |
parent | 261706e2ef9f12131ddcf8ff40fd4c7823693e8d (diff) | |
parent | 372a2f56bed341a23c435c5a94fbb77dbbd6c600 (diff) | |
download | nodejs-94e147500c5bf457c9101bda8c8020d8ff896708.tar.gz nodejs-94e147500c5bf457c9101bda8c8020d8ff896708.tar.bz2 nodejs-94e147500c5bf457c9101bda8c8020d8ff896708.zip |
Merge remote-tracking branch 'joyent/v0.12' into v1.x
I was originally going to do this after the v0.11.15 release, but as
that release is three weeks overdue now, I decided not to wait any
longer; we don't want the delta to get too big.
Conflicts:
lib/net.js
test/simple/simple.status
PR-URL: https://github.com/iojs/io.js/pull/236
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'lib/url.js')
-rw-r--r-- | lib/url.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.js b/lib/url.js index 2d9d436a9..f2219580a 100644 --- a/lib/url.js +++ b/lib/url.js @@ -320,6 +320,8 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { // need to be. for (var i = 0, l = autoEscape.length; i < l; i++) { var ae = autoEscape[i]; + if (rest.indexOf(ae) === -1) + continue; var esc = encodeURIComponent(ae); if (esc === ae) { esc = escape(ae); |