summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-18 01:52:11 +0000
committerZeev Suraski <zeev@php.net>2000-02-18 01:52:11 +0000
commitae22fe4c52d57db1c6451d0525b8bcd47c28b560 (patch)
treec178ad3803320dc38db66d15feb94da7c1d0a72e /main/SAPI.c
parenta0f2e9bf34bf0b731108ef92d065996586fd6c7d (diff)
downloadphp-git-ae22fe4c52d57db1c6451d0525b8bcd47c28b560.tar.gz
- Update .dsp's
- Fix a possible crash bug in failed file open error message - Fix SAPI initialization issue that could lead to a crash
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index fe03ab711e..69fa1a8a84 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -202,6 +202,8 @@ SAPI_API void sapi_activate(SLS_D)
sapi_module.sapi_error(E_COMPILE_ERROR, "No content-type in POST request");
}
sapi_read_post_data(SLS_C);
+ } else {
+ SG(request_info).content_type_dup = NULL;
}
SG(request_info).cookie_data = sapi_module.read_cookies(SLS_C);
if (sapi_module.activate) {