[PHP4BETA] CVS update: php4

From: Date: Sun, 09 May 1999 20:58:27 +0000
Subject: [PHP4BETA] CVS update: php4
Groups: php.version4 
Request: Send a blank email to php-version4+get-734@lists.php.net to get a copy of this message
Date: Sunday May 9, 1999 @ 16:58 Author: zeev Update of /repository/php4 In directory php:/tmp/cvs-serv13743 Modified Files: SAPI.c Log Message: Only read POST info if the request method is POST. Index: php4/SAPI.c diff -u php4/SAPI.c:1.13 php4/SAPI.c:1.14 --- php4/SAPI.c:1.13 Sun May 9 14:40:59 1999 +++ php4/SAPI.c Sun May 9 16:58:26 1999 @@ -94,7 +94,11 @@ SG(headers_sent) = 0; SG(read_post_bytes) = 0; if (SG(server_context)) { - sapi_read_post_data(SLS_C); + if (!strcmp(SG(request_info).request_method, "POST")) { + sapi_read_post_data(SLS_C); + } else { + SG(request_info).post_data = NULL; + } SG(request_info).cookie_data = sapi_module.read_cookies(SLS_C); } } -- PHP 4 Beta

« previous php.version4 (#734) next »