kuksugen / mongoose

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

Change: mg_get_var should take an url-decoded name #240

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
int mg_get_var(const char *buf, size_t buf_len, const char *name,
               char *dst, size_t dst_len) { ... }

Current:
buf is expected to be url encoded
name is expected to be url encoded
dst will contain the url decoded value

Proposal:
As a library user i think it would be  better to expect the name in url decoded 
format.

name should be url encoded (inside mg_get_var) before searching for it in the 
url encoded buf.

Original issue reported on code.google.com by nullable...@gmail.com on 20 Mar 2011 at 10:14

GoogleCodeExporter commented 9 years ago
You can find a proposal here:
http://code.google.com/r/nullabletype-fix-issue-240/

Original comment by nullable...@gmail.com on 29 Sep 2011 at 9:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please see the discussion here: 
https://groups.google.com/d/topic/mongoose-users/qCscw677yXs/discussion

Original comment by nullable...@gmail.com on 26 Apr 2012 at 12:02

GoogleCodeExporter commented 9 years ago
Please see the additional discussion here: 
https://groups.google.com/d/topic/mongoose-users/lrjhs-pLx4Y/discussion

Original comment by nullable...@gmail.com on 6 May 2012 at 4:29

GoogleCodeExporter commented 9 years ago
Issue 281 has been merged into this issue.

Original comment by valenok on 22 Sep 2012 at 8:29