cvs: /php4 SAPI.c

From: Date: Mon, 09 Aug 1999 17:40:28 +0000
Subject: cvs: /php4 SAPI.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-3245@lists.php.net to get a copy of this message
andi Mon Aug 9 13:40:28 1999 EDT Modified files: /php4 SAPI.c Log: Fix HTTP/ header handling Index: php4/SAPI.c diff -u php4/SAPI.c:1.26 php4/SAPI.c:1.27 --- php4/SAPI.c:1.26 Fri Jul 16 09:12:40 1999 +++ php4/SAPI.c Mon Aug 9 13:40:28 1999 @@ -216,8 +216,10 @@ sapi_header.header_len = header_line_len; /* Check the header for a few cases that we have special support for in SAPI */ - if (!memcmp(header_line, "HTTP/", 5)) { + if (header_line_len>=5 + && !memcmp(header_line, "HTTP/", 5)) { SG(sapi_headers).http_status_line = header_line; + return SUCCESS; } else { colon_offset = strchr(header_line, ':'); if (colon_offset) { @@ -238,7 +240,6 @@ } else { retval = SAPI_HEADER_ADD; } - if (retval & SAPI_HEADER_DELETE_ALL) { zend_llist_clean(&SG(sapi_headers).headers); }

« previous php.version4 (#3245) next »