From: Arnaud Le Blanc Date: Sat, 6 Sep 2008 17:19:15 +0000 (+0000) Subject: MFH: Fixed #43540 (rfc1867 handler newlength problem) X-Git-Tag: php-5.2.7RC1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3062692e4947b18fbfcaeff7f9df1f08d7959606;p=php MFH: Fixed #43540 (rfc1867 handler newlength problem) --- diff --git a/NEWS b/NEWS index 1e948940b2..517c604ab2 100644 --- 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). diff --git a/main/rfc1867.c b/main/rfc1867.c index f04d3ac049..a878d55c6c 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -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;