summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2003-11-29 15:24:35 +0000
committerDerick Rethans <derick@php.net>2003-11-29 15:24:35 +0000
commit750b0338bf1a2ae6d2fe48396801ad13a29255a2 (patch)
tree34df9d9b724f29704400d6f13ba040add72ac58b /main/rfc1867.c
parentf7830195c02682482e8e644ad10fd96de0d654ae (diff)
downloadphp-git-750b0338bf1a2ae6d2fe48396801ad13a29255a2.tar.gz
- Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of the variables being filtered is now returned in the new_val_len argument of the function.
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index fc83952764..1cfb8864c5 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -881,14 +881,13 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
if (!filename && param) {
char *value = multipart_buffer_read_body(mbuff TSRMLS_CC);
- int val_len;
+ unsigned int new_val_len;
if (!value) {
value = estrdup("");
}
- val_len = sapi_module.input_filter(PARSE_POST, param, &value, strlen(value) TSRMLS_CC);
- if (val_len) {
+ if (sapi_module.input_filter(PARSE_POST, param, &value, strlen(value), &new_val_len TSRMLS_CC)) {
#if HAVE_MBSTRING && !defined(COMPILE_DL_MBSTRING)
if (php_mb_encoding_translation(TSRMLS_C)) {
php_mb_gpc_stack_variable(param, value, &val_list, &len_list,