From: Sara Golemon Date: Fri, 23 May 2003 21:37:16 +0000 (+0000) Subject: Bug#23765 File upload handler should not care about case sensitivity of header values. X-Git-Tag: php-4.3.2RC4~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97dd56a97464cd45bceecf76de244f1e185dff68;p=php 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 eeab1ff851..36c521f288 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -774,12 +774,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); } @@ -802,7 +802,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) } 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); }