mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
The ISAPI module was incompatible with the CGI fix, which ruined POST's
This commit is contained in:
parent
8372b2baf1
commit
7c70003d22
@ -257,7 +257,7 @@ static int sapi_isapi_read_post(char *buffer, uint count_bytes SLS_DC)
|
||||
DWORD read_from_input=0;
|
||||
DWORD total_read=0;
|
||||
|
||||
if (SG(read_post_bytes) < lpECB->cbAvailable) {
|
||||
if ((DWORD) SG(read_post_bytes) < lpECB->cbAvailable) {
|
||||
read_from_buf = MIN(lpECB->cbAvailable-SG(read_post_bytes), count_bytes);
|
||||
memcpy(buffer, lpECB->lpbData+SG(read_post_bytes), read_from_buf);
|
||||
total_read += read_from_buf;
|
||||
@ -276,7 +276,6 @@ static int sapi_isapi_read_post(char *buffer, uint count_bytes SLS_DC)
|
||||
}
|
||||
total_read += cbRead;
|
||||
}
|
||||
SG(read_post_bytes) += total_read;
|
||||
return total_read;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user