diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-02-09 10:24:26 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-02-09 10:24:26 -0800 |
commit | a0702b54d1db35a6006644882c0b5420d8670958 (patch) | |
tree | e246bb342237e8caabd45450301cb7cc5e4ccf24 /deps/v8/src/uri.js | |
parent | a48a0755358d322f4a593d09c331432c10a500bc (diff) | |
download | node-a0702b54d1db35a6006644882c0b5420d8670958.tar.gz |
Upgrade V8 to 3.1.2
Diffstat (limited to 'deps/v8/src/uri.js')
-rw-r--r-- | deps/v8/src/uri.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/v8/src/uri.js b/deps/v8/src/uri.js index 3adab83d8..179fa9286 100644 --- a/deps/v8/src/uri.js +++ b/deps/v8/src/uri.js @@ -205,7 +205,7 @@ function Decode(uri, reserved) { octets[0] = cc; if (k + 3 * (n - 1) >= uriLength) throw new $URIError("URI malformed"); for (var i = 1; i < n; i++) { - k++; + if (uri.charAt(++k) != '%') throw new $URIError("URI malformed"); octets[i] = URIHexCharsToCharCode(uri.charAt(++k), uri.charAt(++k)); } index = URIDecodeOctets(octets, result, index); @@ -412,4 +412,3 @@ function SetupURI() { } SetupURI(); - |