]> granicus.if.org Git - php/commitdiff
- HTTP Request Types are case-sensitive
authorDerick Rethans <derick@php.net>
Thu, 12 Jun 2003 08:33:45 +0000 (08:33 +0000)
committerDerick Rethans <derick@php.net>
Thu, 12 Jun 2003 08:33:45 +0000 (08:33 +0000)
main/main.c

index 27484151c9ec1e63b5a170325bdc33f05750a435..6f9df74e8c89d28985de10b0c68f6f23c83cef6c 100644 (file)
@@ -1407,7 +1407,7 @@ static int php_hash_environment(TSRMLS_D)
                switch(*p) {
                        case 'p':
                        case 'P':
-                               if (!_gpc_flags[0] && !SG(headers_sent) && SG(request_info).request_method && !strcasecmp(SG(request_info).request_method, "POST")) {
+                               if (!_gpc_flags[0] && !SG(headers_sent) && SG(request_info).request_method && !strcmp(SG(request_info).request_method, "POST")) {
                                        sapi_module.treat_data(PARSE_POST, NULL, NULL TSRMLS_CC);       /* POST Data */
                                        _gpc_flags[0]=1;
                                }