diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-06-08 13:23:38 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-06-08 13:23:38 +0000 |
commit | b8c9e83664a05a9dbd1aa6f5006d3b5f17d9451e (patch) | |
tree | 103acf9328b55355a90f1f208baf64dd7cceae11 /main/SAPI.c | |
parent | 4ea43fe0191ad7853f8bee5d5bdbbc65fd4c13b2 (diff) | |
download | php-git-b8c9e83664a05a9dbd1aa6f5006d3b5f17d9451e.tar.gz |
Fixed bug #28692 (\0 in Authenticate header passed via safe_mode).
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |