iliaa Tue Jun 8 09:23:38 2004 EDT Modified files: /php-src/main SAPI.c Log: Fixed bug #28692 (\0 in Authenticate header passed via safe_mode). http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.186&r2=1.187&ty=u Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.186 php-src/main/SAPI.c:1.187 --- php-src/main/SAPI.c:1.186 Mon Jun 7 09:51:50 2004 +++ php-src/main/SAPI.c Tue Jun 8 09:23:38 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.186 2004/06/07 13:51:50 iliaa Exp $ */ +/* $Id: SAPI.c,v 1.187 2004/06/08 13:23:38 iliaa Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -650,7 +650,7 @@ 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php