cvs: php-src(PHP_4_3) /main SAPI.c

From: Date: Sat, 27 Mar 2004 01:45:44 +0000
Subject: cvs: php-src(PHP_4_3) /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-26816@lists.php.net to get a copy of this message
helly Fri Mar 26 20:45:44 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/main SAPI.c Log: Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type Header http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.155.2.17&r2=1.155.2.18&ty=u Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.155.2.17 php-src/main/SAPI.c:1.155.2.18 --- php-src/main/SAPI.c:1.155.2.17 Mon Mar 8 21:24:20 2004 +++ php-src/main/SAPI.c Fri Mar 26 20:45:44 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.155.2.17 2004/03/09 02:24:20 iliaa Exp $ */ +/* $Id: SAPI.c,v 1.155.2.18 2004/03/27 01:45:44 helly Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -550,8 +550,9 @@ if (!STRCASECMP(header_line, "Content-Type")) { char *ptr = colon_offset+1, *mimetype = NULL, *newheader; size_t len = header_line_len - (ptr - header_line), newlen; - while (*ptr == ' ' && *ptr != '\0') { + while (*ptr == ' ') { ptr++; + len--; } #if HAVE_ZLIB if(!strncmp(ptr, "image/", sizeof("image/")-1)) {

« previous php.cvs (#26816) next »