From: Sascha Schumann Date: Fri, 19 Jan 2001 15:39:35 +0000 (+0000) Subject: Make the code match the comment. X-Git-Tag: php-4.0.5RC1~520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96ba644e9f36b479e56fa544e8c620e215d65008;p=php Make the code match the comment. Prior to this change, the upload code tried to add mangled names to the global HTTP_POST_FILES array, resulting in all kind of weird behaviour. After this change, multi-dimensional form elements are treated correctly and consistently. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index e63487fbe4..c0a8e58c6d 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -195,7 +195,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr S * start_arr is set to point to 1st [ * end_arr points to last ] */ - is_arr_upload = (start_arr = strrchr(namebuf,'[')) && + is_arr_upload = (start_arr = strchr(namebuf,'[')) && (end_arr = strrchr(namebuf,']')) && (end_arr = namebuf+strlen(namebuf)-1); if(is_arr_upload) {