diff options
author | Marcus Boerger <helly@php.net> | 2004-03-25 08:42:00 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-03-25 08:42:00 +0000 |
commit | bca43470641daec801d3d686630efb78ab5ec758 (patch) | |
tree | 213efc2ece476b503820c797216b296767fcbb1b /main/SAPI.c | |
parent | 2bbba73606cb016aed42b3e51a302c6eb865715d (diff) | |
download | php-git-bca43470641daec801d3d686630efb78ab5ec758.tar.gz |
Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type Header
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 349a4f4fe6..1ab3cc7244 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -560,8 +560,9 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) 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)) { |