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

index 6cf4fe2a26311592d2ceb72d2c552e746e65e08d..25c5b8befee35df63ff1630ea27a39ab948688b6 100644 (file)
@@ -1177,7 +1177,7 @@ static SAPI_POST_HANDLER_FUNC(rfc1867_post_handler_unicode)
                                /* if (sapi_module.input_filter(PARSE_POST, param, &u_val, u_val_len, &new_val_len TSRMLS_CC)) { */
                                        if (php_rfc1867_callback != NULL) {
                                                multipart_event_formdata event_formdata;
-                                               size_t newlength = 0;
+                                               size_t newlength = (size_t) u_val_len;
 
                                                event_formdata.post_bytes_processed = SG(read_post_bytes);
                                                event_formdata.name = ZSTR(param);