summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-01-05 16:43:58 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2015-01-05 17:26:47 +0100
commit94e147500c5bf457c9101bda8c8020d8ff896708 (patch)
tree7cdea05267b4d7c118bab4902c8ccc76216128f3 /lib/url.js
parent261706e2ef9f12131ddcf8ff40fd4c7823693e8d (diff)
parent372a2f56bed341a23c435c5a94fbb77dbbd6c600 (diff)
downloadnodejs-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.js2
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);