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

index 1eda4f94c2abeba2bc6fdbb641954d4313e26cc5..16317aa3510157a7d60f8d3884d8c5dc673981ad 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;