sas             Sat Jan 13 02:19:17 2001 EDT

  Modified files:              
    /php4/main  rfc1867.c 
  Log:
  arr_index errorneusly included the trailing ']' character, so that
  variable names like Data_name[Image]] were passed to the register functions.
  
  
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.56 php4/main/rfc1867.c:1.57
--- php4/main/rfc1867.c:1.56    Wed Jan  3 02:52:26 2001
+++ php4/main/rfc1867.c Sat Jan 13 02:19:17 2001
@@ -15,7 +15,7 @@
    | Authors: Rasmus Lerdorf <[EMAIL PROTECTED]>                             |
    +----------------------------------------------------------------------+
  */
-/* $Id: rfc1867.c,v 1.56 2001/01/03 10:52:26 stas Exp $ */
+/* $Id: rfc1867.c,v 1.57 2001/01/13 10:19:17 sas Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -207,7 +207,7 @@
                                        if(is_arr_upload) {
                                                arr_len = strlen(start_arr);
                                                if(arr_index) efree(arr_index);
-                                               arr_index = 
estrndup(start_arr+1,arr_len-1);    
+                                               arr_index = 
+estrndup(start_arr+1,arr_len-2);    
                                        }
                                } else {
                                        php_error(E_WARNING, "File upload error - no 
name component in content disposition");



-- 
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]

Reply via email to