diff options
| author | Sascha Schumann <sas@php.net> | 2001-01-19 15:39:35 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2001-01-19 15:39:35 +0000 |
| commit | 96ba644e9f36b479e56fa544e8c620e215d65008 (patch) | |
| tree | 3fb0f15b762b2354dd631dcaaa4fe038de56cc18 | |
| parent | 809bf95a90f0cfe14400aa7793a6b125a6598914 (diff) | |
| download | php-git-96ba644e9f36b479e56fa544e8c620e215d65008.tar.gz | |
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.
| -rw-r--r-- | main/rfc1867.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
