From: Sara Golemon Date: Fri, 23 May 2003 21:40:45 +0000 (+0000) Subject: MFB(r-1.122.2.10) X-Git-Tag: RELEASE_1_0_2~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dccf33b4e88a60a77c6fe42c40d1587943b4c83d;p=php MFB(r-1.122.2.10) Bug#23765 File upload handler should not care about case sensitivity of header values. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index 457a0184e2..a0c95dc168 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -778,12 +778,12 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) if (strchr(pair, '=')) { key = php_ap_getword(&pair, '='); - if (!strcmp(key, "name")) { + if (!strcasecmp(key, "name")) { if (param) { efree(param); } param = php_ap_getword_conf(&pair TSRMLS_CC); - } else if (!strcmp(key, "filename")) { + } else if (!strcasecmp(key, "filename")) { if (filename) { efree(filename); } @@ -807,7 +807,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) sapi_module.input_filter(PARSE_POST, param, &value, strlen(value) TSRMLS_CC); safe_php_register_variable(param, value, array_ptr, 0 TSRMLS_CC); - if (!strcmp(param, "MAX_FILE_SIZE")) { + if (!strcasecmp(param, "MAX_FILE_SIZE")) { max_file_size = atol(value); }