]> granicus.if.org Git - php/commitdiff
Make the code match the comment.
authorSascha Schumann <sas@php.net>
Fri, 19 Jan 2001 15:39:35 +0000 (15:39 +0000)
committerSascha Schumann <sas@php.net>
Fri, 19 Jan 2001 15:39:35 +0000 (15:39 +0000)
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.

main/rfc1867.c

index e63487fbe4737cf6f1e9281cda849a41490f2f1f..c0a8e58c6dae5d6236b330ec543f68be9b3a5c06 100644 (file)
@@ -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) {