]> granicus.if.org Git - php/commitdiff
MFH: Fixed #43540 (rfc1867 handler newlength problem)
authorArnaud Le Blanc <lbarnaud@php.net>
Sat, 6 Sep 2008 17:19:15 +0000 (17:19 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Sat, 6 Sep 2008 17:19:15 +0000 (17:19 +0000)
NEWS
main/rfc1867.c

diff --git a/NEWS b/NEWS
index 1e948940b25e5d58aa383976581d85cfb950cbae..517c604ab2a3e21254e662f54ca80549f5a39812 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -98,6 +98,7 @@ PHP                                                                        NEWS
   cursormodel). (Patrick)
 - Fixed bug #43666 (Fixed code to use ODBC 3.52 datatypes for 64bit systems). 
   (Patrick)
+- Fixed bug #43540 (rfc1867 handler newlength problem). (Arnaud)
 - Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines).
   (Nuno)
 - Fixed bug #42604 ("make test" fails with --with-config-file-scan-dir=path).
index f04d3ac049023ff7bf39c09d79dcc48ca6c4f8be..a878d55c6cf81b9dd5791a169ea5acd8e3acb0ac 100644 (file)
@@ -925,7 +925,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
                                if (sapi_module.input_filter(PARSE_POST, param, &value, value_len, &new_val_len TSRMLS_CC)) {
                                        if (php_rfc1867_callback != NULL) {
                                                multipart_event_formdata event_formdata;
-                                               size_t newlength = 0;
+                                               size_t newlength = new_val_len;
 
                                                event_formdata.post_bytes_processed = SG(read_post_bytes);
                                                event_formdata.name = param;