POST bug
Mark Fletcher <[email protected]> Tue, 3 Nov 2009 16:18:03 -0800
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
Not sure when this started happening, but at least with Dojo these days, forms are POSTed with a Content-Type that include a charset declaration, ie: Content-Type: application/x-www-form-urlencoded; charset=UTF-8 The clearsilver CGI wrapper doesn't catch this because it's doing a full string compare. Change line 643 of cgi/cgi.c to this to fix: if (type && !strncmp(type, "application/x-www-form-urlencoded", 33)) Mark