cgi.c POST Content-Type problem
"Ogla Sungutay" <[email protected]> Sat, 17 May 2008 22:44:30 -0000
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
Hey guys,
In cgi_parse() there is a string comparison made when we have a POST
request:
if (type && !strcmp(type, "application/x-www-form-urlencoded"))
//...
The content type could be something like
"application/x-www-form-urlencoded; charset:utf-8"
So the condition is not met. As with the later conditional, I use
if (type && !strncmp(type, "application/x-www-form-urlencoded",33))
, and the problem is gone.