You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Mornini <tm...@infomania.com> on 2000/06/17 01:36:51 UTC
A patch for Apache::Request
To allow the use of utf-8 encoded form data, as per Jim Winstead
<ji...@trainedmonkey.com>
*** apache_request.c Fri Jul 2 18:00:17 1999
--- ../../libapreq-0.31-tom/c/apache_request.c Fri Jun 16 16:29:38 2000
***************
*** 201,207 ****
if (r->method_number == M_POST) {
const char *ct = ap_table_get(r->headers_in, "Content-type");
! if (ct && *ct == 'a' && strEQ(ct, DEFAULT_ENCTYPE)) {
return ApacheRequest_parse_urlencoded(req);
}
else if (ct && *ct == 'm' && strstr(ct, "multipart/form-data")) {
--- 201,207 ----
if (r->method_number == M_POST) {
const char *ct = ap_table_get(r->headers_in, "Content-type");
! if (ct && *ct == 'a' && strstr(ct, DEFAULT_ENCTYPE)) {
return ApacheRequest_parse_urlencoded(req);
}
else if (ct && *ct == 'm' && strstr(ct, "multipart/form-data")) {
***************
*** 297,303 ****
type = ap_table_get(r->headers_in, "Content-Type");
! if (!strcaseEQ(type, DEFAULT_ENCTYPE)) {
return DECLINED;
}
if ((rc = util_read(req, &data)) != OK) {
--- 297,303 ----
type = ap_table_get(r->headers_in, "Content-Type");
! if (!strstr(type, DEFAULT_ENCTYPE)) {
return DECLINED;
}
if ((rc = util_read(req, &data)) != OK) {
--
-- Tom Mornini
-- InfoMania Printing and Prepress