cvs: php4 /main rfc1867.c

From: Date: Fri, 19 Jan 2001 15:39:35 +0000
Subject: cvs: php4 /main rfc1867.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3694@lists.php.net to get a copy of this message
sas Fri Jan 19 07:39:35 2001 EDT Modified files: /php4/main rfc1867.c Log: 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. Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.58 php4/main/rfc1867.c:1.59 --- php4/main/rfc1867.c:1.58 Mon Jan 15 02:50:39 2001 +++ php4/main/rfc1867.c Fri Jan 19 07:39:35 2001 @@ -15,7 +15,7 @@ | Authors: Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: rfc1867.c,v 1.58 2001/01/15 10:50:39 zeev Exp $ */ +/* $Id: rfc1867.c,v 1.59 2001/01/19 15:39:35 sas Exp $ */ #include <stdio.h> #include "php.h" @@ -195,7 +195,7 @@ * 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) {

« previous php.cvs (#3694) next »