Permalink
Browse files

Handle Content-Type HTTP headers with a charset appended.

The fix for #4585 in cgiutil.c is also needed in mapows.c to handle Content-Type HTTP headers with a charset appended.
  • Loading branch information...
1 parent 937dcb6 commit 72a9a19831c2e434e7beb0fc55acadbfdc26cfd1 @sebastic sebastic committed with tbonfort Jun 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapows.c
View
@@ -95,7 +95,7 @@ static int msOWSPreParseRequest(cgiRequestObj *request,
owsRequestObj *ows_request)
{
/* decide if KVP or XML */
- if (request->type == MS_GET_REQUEST || (request->type == MS_POST_REQUEST && strcmp(request->contenttype, "application/x-www-form-urlencoded")==0)) {
+ if (request->type == MS_GET_REQUEST || (request->type == MS_POST_REQUEST && strncmp(request->contenttype, "application/x-www-form-urlencoded", strlen("application/x-www-form-urlencoded")) == 0)) {
int i;
/* parse KVP parameters service, version and request */
for (i = 0; i < request->NumParams; ++i) {

0 comments on commit 72a9a19

Please sign in to comment.