ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

mg_get_var gets it wrong with uri escaped (%2b) characters #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. uri handler with uri "/uri?q=plus%2bone&p=two"
2. mg_get_var(conn, "q") returns "plus+one&" (Note, incorrect trailing "&")
3. with "/uri?q=plus%2bone&p=plus%2btwo" mg_get_var(conn, "q") gives a crash

What is the expected output? What do you see instead?
get_var("q", "/uri?q=plus%2bone&p=two", ...)
should return "plus+one"

get_var("q", "/uri?q=plus%2bone&p=plus%2btwo", ...)
should not crash

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

Please provide any additional information below.

Original issue reported on code.google.com by muchadhe...@gmail.com on 11 Mar 2009 at 2:31

GoogleCodeExporter commented 9 years ago
Fixed by http://code.google.com/p/mongoose/source/detail?r=236

Original comment by valenok on 22 Mar 2009 at 11:08