diff options
| -rw-r--r-- | rfc1867_new.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rfc1867_new.c b/rfc1867_new.c index dfdc1d9..318e5a6 100644 --- a/rfc1867_new.c +++ b/rfc1867_new.c | |||
| @@ -761,7 +761,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 761 | 761 | ||
| 762 | zend_llist_init(&header, sizeof(mime_header_entry), (llist_dtor_func_t) php_free_hdr_entry, 0); | 762 | zend_llist_init(&header, sizeof(mime_header_entry), (llist_dtor_func_t) php_free_hdr_entry, 0); |
| 763 | 763 | ||
| 764 | if (suhosin_rfc1867_filter != NULL) { | 764 | if (&suhosin_rfc1867_filter != NULL) { |
| 765 | multipart_event_start event_start; | 765 | multipart_event_start event_start; |
| 766 | 766 | ||
| 767 | event_start.content_length = SG(request_info).content_length; | 767 | event_start.content_length = SG(request_info).content_length; |
| @@ -865,7 +865,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 865 | } | 865 | } |
| 866 | 866 | ||
| 867 | if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, new_val_len, &new_val_len TSRMLS_CC)) { | 867 | if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, new_val_len, &new_val_len TSRMLS_CC)) { |
| 868 | if (suhosin_rfc1867_filter != NULL) { | 868 | if (&suhosin_rfc1867_filter != NULL) { |
| 869 | multipart_event_formdata event_formdata; | 869 | multipart_event_formdata event_formdata; |
| 870 | size_t newlength = new_val_len; | 870 | size_t newlength = new_val_len; |
| 871 | 871 | ||
| @@ -887,7 +887,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 887 | php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); | 887 | php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); |
| 888 | } | 888 | } |
| 889 | 889 | ||
| 890 | if (suhosin_rfc1867_filter != NULL) { | 890 | if (&suhosin_rfc1867_filter != NULL) { |
| 891 | multipart_event_formdata event_formdata; | 891 | multipart_event_formdata event_formdata; |
| 892 | 892 | ||
| 893 | event_formdata.post_bytes_processed = SG(read_post_bytes); | 893 | event_formdata.post_bytes_processed = SG(read_post_bytes); |
| @@ -961,7 +961,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 961 | temp_filename = NULL; | 961 | temp_filename = NULL; |
| 962 | fd = -1; | 962 | fd = -1; |
| 963 | 963 | ||
| 964 | if (!skip_upload && suhosin_rfc1867_filter != NULL) { | 964 | if (!skip_upload && &suhosin_rfc1867_filter != NULL) { |
| 965 | multipart_event_file_start event_file_start; | 965 | multipart_event_file_start event_file_start; |
| 966 | 966 | ||
| 967 | event_file_start.post_bytes_processed = SG(read_post_bytes); | 967 | event_file_start.post_bytes_processed = SG(read_post_bytes); |
| @@ -1011,7 +1011,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 1011 | 1011 | ||
| 1012 | while (!cancel_upload && (blen > 0)) | 1012 | while (!cancel_upload && (blen > 0)) |
| 1013 | { | 1013 | { |
| 1014 | if (suhosin_rfc1867_filter != NULL) { | 1014 | if (&suhosin_rfc1867_filter != NULL) { |
| 1015 | multipart_event_file_data event_file_data; | 1015 | multipart_event_file_data event_file_data; |
| 1016 | 1016 | ||
| 1017 | event_file_data.post_bytes_processed = SG(read_post_bytes); | 1017 | event_file_data.post_bytes_processed = SG(read_post_bytes); |
| @@ -1075,7 +1075,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 1075 | cancel_upload = 5; | 1075 | cancel_upload = 5; |
| 1076 | } | 1076 | } |
| 1077 | #endif | 1077 | #endif |
| 1078 | if (suhosin_rfc1867_filter != NULL) { | 1078 | if (&suhosin_rfc1867_filter != NULL) { |
| 1079 | multipart_event_file_end event_file_end; | 1079 | multipart_event_file_end event_file_end; |
| 1080 | 1080 | ||
| 1081 | event_file_end.post_bytes_processed = SG(read_post_bytes); | 1081 | event_file_end.post_bytes_processed = SG(read_post_bytes); |
| @@ -1255,7 +1255,7 @@ SAPI_POST_HANDLER_FUNC(suhosin_rfc1867_post_handler) /* {{{ */ | |||
| 1255 | } | 1255 | } |
| 1256 | 1256 | ||
| 1257 | fileupload_done: | 1257 | fileupload_done: |
| 1258 | if (suhosin_rfc1867_filter != NULL) { | 1258 | if (&suhosin_rfc1867_filter != NULL) { |
| 1259 | multipart_event_end event_end; | 1259 | multipart_event_end event_end; |
| 1260 | 1260 | ||
| 1261 | event_end.post_bytes_processed = SG(read_post_bytes); | 1261 | event_end.post_bytes_processed = SG(read_post_bytes); |
