From: Sascha Schumann Date: Sat, 13 Jan 2001 10:19:17 +0000 (+0000) Subject: arr_index errorneusly included the trailing ']' character, so that X-Git-Tag: php-4.0.5RC1~605 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d8e3c37d9d7113c7d9be700ad6b7133eee190e7;p=php arr_index errorneusly included the trailing ']' character, so that variable names like Data_name[Image]] were passed to the register functions. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index 195b567f80..10a5843946 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -207,7 +207,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S 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");