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 <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]