From: Ilia Alshanetsky Date: Tue, 8 Jun 2004 13:23:38 +0000 (+0000) Subject: Fixed bug #28692 (\0 in Authenticate header passed via safe_mode). X-Git-Tag: php-5.0.0~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8c9e83664a05a9dbd1aa6f5006d3b5f17d9451e;p=php Fixed bug #28692 (\0 in Authenticate header passed via safe_mode). --- diff --git a/main/SAPI.c b/main/SAPI.c index 979b37d9c8..b1e3488f06 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -650,7 +650,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) efree(lower_temp); } } - newlen = sizeof("WWW-Authenticate: ") + result_len; + newlen = sizeof("WWW-Authenticate: ") - 1 + result_len; newheader = emalloc(newlen+1); sprintf(newheader,"WWW-Authenticate: %s", result); efree(header_line);