cvs: /php4 SAPI.c
| From: | Thies C. Arntzen | Date: | Fri, 25 Feb 2000 10:11:13 +0000 |
| Subject: | cvs: /php4 SAPI.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10929@lists.php.net to get a copy of this message | ||
thies Fri Feb 25 02:11:13 2000 EDT
Modified files:
/php4 SAPI.c
Log:
fix obvious crash.
stig, in sgi-mode i still "only" get:
(haven't touched my .ini file in ages - and don't plan to)
X-Powered-By: PHP/4.0b5-dev
Content-type: iso-8859-1 <<< where is text/html?
Index: php4/SAPI.c
diff -u php4/SAPI.c:1.59 php4/SAPI.c:1.60
--- php4/SAPI.c:1.59 Thu Feb 24 14:00:47 2000
+++ php4/SAPI.c Fri Feb 25 02:10:43 2000
@@ -389,6 +389,7 @@
sapi_header_struct default_header;
int len = SG(sapi_headers).default_content_type_size + sizeof("Content-type: ");
+ default_header.header = emalloc(len);
strcpy(default_header.header, "Content-type: ");
strlcat(default_header.header, SG(sapi_headers).default_content_type, len);
default_header.header[len - 1] = '\0';