httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1372419 - /httpd/httpd/trunk/server/util.c
Date Mon, 13 Aug 2012 13:37:16 GMT
Author: humbedooh
Date: Mon Aug 13 13:37:15 2012
New Revision: 1372419

URL: http://svn.apache.org/viewvc?rev=1372419&view=rev
Log:
make the CT check in ap_parse_form_data case-insensitive

Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1372419&r1=1372418&r2=1372419&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Mon Aug 13 13:37:15 2012
@@ -2406,7 +2406,7 @@ AP_DECLARE(int) ap_parse_form_data(reque
 
     /* sanity check - we only support forms for now */
     ct = apr_table_get(r->headers_in, "Content-Type");
-    if (!ct || strncmp("application/x-www-form-urlencoded", ct, 33)) {
+    if (!ct || strncasecmp("application/x-www-form-urlencoded", ct, 33)) {
         return ap_discard_request_body(r);
     }
 



Mime
View raw message