]> granicus.if.org Git - php/commitdiff
Bug#23765 File upload handler should not care about case sensitivity of header values.
authorSara Golemon <pollita@php.net>
Fri, 23 May 2003 21:37:16 +0000 (21:37 +0000)
committerSara Golemon <pollita@php.net>
Fri, 23 May 2003 21:37:16 +0000 (21:37 +0000)
main/rfc1867.c

index eeab1ff851416568c3b07620981f2cc160d6d034..36c521f28848a5809d3fac6df865a32e552ab36f 100644 (file)
@@ -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);
                                }