diff options
| author | Ben Fuhrmannek | 2016-10-12 10:38:56 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-10-12 10:38:56 +0200 |
| commit | 72c613f61978d22ab1662eb6569d68ffd884ad9e (patch) | |
| tree | 708187dbb619952c41f0f05041d8f019f3ec33ed | |
| parent | 8a7164d080cdffd683cf9bca71953f03d561806f (diff) | |
fixed incorrect value length as proposed with #104
| -rw-r--r-- | rfc1867_new.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rfc1867_new.c b/rfc1867_new.c index e03de44..5345a37 100644 --- a/rfc1867_new.c +++ b/rfc1867_new.c | |||
| @@ -870,15 +870,15 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 870 | value_len = new_value_len; | 870 | value_len = new_value_len; |
| 871 | } | 871 | } |
| 872 | } | 872 | } |
| 873 | 873 | ||
| 874 | if (suhosin_input_filter(PARSE_POST, param, &value, value_len, &new_val_len TSRMLS_CC) == 0) { | 874 | if (suhosin_input_filter(PARSE_POST, param, &value, value_len, &new_val_len TSRMLS_CC) == 0) { |
| 875 | SUHOSIN_G(abort_request)=1; | 875 | SUHOSIN_G(abort_request)=1; |
| 876 | efree(param); | 876 | efree(param); |
| 877 | efree(value); | 877 | efree(value); |
| 878 | continue; | 878 | continue; |
| 879 | } | 879 | } |
| 880 | 880 | ||
| 881 | if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, value_len, &new_val_len TSRMLS_CC)) { | 881 | if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, new_val_len, &new_val_len TSRMLS_CC)) { |
| 882 | if (&suhosin_rfc1867_filter != NULL) { | 882 | if (&suhosin_rfc1867_filter != NULL) { |
| 883 | multipart_event_formdata event_formdata; | 883 | multipart_event_formdata event_formdata; |
| 884 | size_t newlength = new_val_len; | 884 | size_t newlength = new_val_len; |
