Be less strict when checking whether Content-Type is set to "application/x-www-form-urlencoded"
when parsing POST data, or we risk losing data with an appended charset.
PR 53698
Reported by: Petter Berntsen < sluggr gmail.com >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1372054 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) core: Be less strict when checking whether Content-Type is set to
+ "application/x-www-form-urlencoded" when parsing POST data,
+ or we risk losing data with an appended charset. PR 53698
+ [Petter Berntsen <sluggr gmail.com>]
+
*) Windows: Fix SSL failures on windows with AcceptFilter https none.
PR: 52476. [Jeff Trawick]
/* sanity check - we only support forms for now */
ct = apr_table_get(r->headers_in, "Content-Type");
- if (!ct || strcmp("application/x-www-form-urlencoded", ct)) {
+ if (!ct || ap_strcmp_match(ct, "application/x-www-form-urlencoded*")) {
return ap_discard_request_body(r);
}