mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
arr_index errorneusly included the trailing ']' character, so that
variable names like Data_name[Image]] were passed to the register functions.
This commit is contained in:
parent
d0c2255750
commit
5d8e3c37d9
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user