From: Derick Rethans Date: Thu, 12 Jun 2003 08:38:58 +0000 (+0000) Subject: - MFB: HTTP Request Methods are case sensitive X-Git-Tag: RELEASE_1_0_2~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b1f7be3eb7bca9262681669540fcbd472935cfe;p=php - MFB: HTTP Request Methods are case sensitive #- This was surrounded by an #ifdef, but I thought I fixed it too. --- diff --git a/main/main.c b/main/main.c index e5ff728485..68cbffa353 100644 --- a/main/main.c +++ b/main/main.c @@ -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; }