Fix compliance bug in decodeURI/decodeURIComponent.
Review URL: http://codereview.chromium.org/6349105 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6630 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
84de496896
commit
b254d727a6
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user