cvs: php4 /main rfc1867.c

From: Date: Sat, 13 Jan 2001 10:19:17 +0000
Subject: cvs: php4 /main rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3586@lists.php.net to get a copy of this message
sas Sat Jan 13 02:19:17 2001 EDT Modified files: /php4/main rfc1867.c Log: arr_index errorneusly included the trailing ']' character, so that variable names like Data_name[Image]] were passed to the register functions. Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.56 php4/main/rfc1867.c:1.57 --- php4/main/rfc1867.c:1.56 Wed Jan 3 02:52:26 2001 +++ php4/main/rfc1867.c Sat Jan 13 02:19:17 2001 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.56 2001/01/03 10:52:26 stas Exp $ */ +/* $Id: rfc1867.c,v 1.57 2001/01/13 10:19:17 sas Exp $ */ #include <stdio.h> #include "php.h" @@ -207,7 +207,7 @@ if(is_arr_upload) { arr_len = strlen(start_arr); if(arr_index) efree(arr_index); - arr_index = estrndup(start_arr+1,arr_len-1); + arr_index = estrndup(start_arr+1,arr_len-2); } } else { php_error(E_WARNING, "File upload error - no name component in content disposition");

« previous php.cvs (#3586) next »