Permalink
Browse files

ignore additional encodings in received content-type headers (#4585)

closes #4585
  • Loading branch information...
1 parent 1fbded6 commit 484e28c1fc3fd7660d68bb4f0a892397fa5d444a @tbonfort tbonfort committed Mar 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cgiutil.c
View
@@ -159,7 +159,7 @@ int loadParams(cgiRequestObj *request,
/* if the content_type is application/x-www-form-urlencoded,
we have to parse it like the QUERY_STRING variable */
- if(strcmp(request->contenttype, "application/x-www-form-urlencoded") == 0) {
+ if(strncmp(request->contenttype, "application/x-www-form-urlencoded", strlen("application/x-www-form-urlencoded")) == 0) {
while( data_len > 0 && isspace(post_data[data_len-1]) )
post_data[--data_len] = '\0';

0 comments on commit 484e28c

Please sign in to comment.