]> granicus.if.org Git - php/commitdiff
- MFB: HTTP Request Methods are case sensitive
authorDerick Rethans <derick@php.net>
Thu, 12 Jun 2003 08:38:58 +0000 (08:38 +0000)
committerDerick Rethans <derick@php.net>
Thu, 12 Jun 2003 08:38:58 +0000 (08:38 +0000)
#- This was surrounded by an #ifdef, but I thought I fixed it too.

main/main.c

index e5ff728485a479a99ce30288647706fe4cb6b82b..68cbffa353c7b69c9f0a4706f2c29e0df83ea92b 100644 (file)
@@ -1497,7 +1497,7 @@ static zend_bool php_auto_globals_create_post(TSRMLS_D)
        if (PG(activated_auto_globals)[TRACK_VARS_POST]) {
                return 0;
        }
-       if (!SG(headers_sent) && SG(request_info).request_method && !strcasecmp(SG(request_info).request_method, "POST")) {
+       if (!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;
        }