cvs: php4 /main SAPI.c
| From: | Jani Taskinen | Date: | Sun, 18 Mar 2001 08:00:10 +0000 |
| Subject: | cvs: php4 /main SAPI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4637@lists.php.net to get a copy of this message | ||
sniper Sun Mar 18 00:00:10 2001 EDT
Modified files:
/php4/main SAPI.c
Log:
Fix possible crash if content-type is not set.
Index: php4/main/SAPI.c
diff -u php4/main/SAPI.c:1.101 php4/main/SAPI.c:1.102
--- php4/main/SAPI.c:1.101 Sat Mar 17 18:32:04 2001
+++ php4/main/SAPI.c Sun Mar 18 00:00:10 2001
@@ -97,7 +97,7 @@
SAPI_API void sapi_handle_post(void *arg SLS_DC)
{
- if (SG(request_info).post_entry) {
+ if (SG(request_info).post_entry && SG(request_info).content_type_dup) {
SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg SLS_CC);
if (SG(request_info).post_data) {
efree(SG(request_info).post_data);