joshua655 / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

http post variables that end with [] #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a html with many inputs that ends with [],  ie. "r[]"
2. Look in the variable "r"
3.

What is the expected output? What do you see instead?
something in "r", nothing in "r[]"

What version of the product are you using? On what operating system?

Please provide any additional information below.

In http.js, it looks at the name before it is decoded.  Which is %5B%5D

****

                if (name.substring(name.length-2) == "[]") { name = name.substring(0,name.length-2); }

                name = decode(name);
                value = decode(value);

**** Should be...

                name = decode(name);
                value = decode(value);
                if (name.substring(name.length-2) == "[]") { name = name.substring(0,name.length-2); }

Original issue reported on code.google.com by nik...@gmail.com on 13 Mar 2012 at 11:11

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 10 Apr 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Commited in r1007, thanks!

Original comment by ondrej.zara on 11 Apr 2012 at 5:57