summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2003-02-20 22:21:49 +0000
committerRasmus Lerdorf <rasmus@php.net>2003-02-20 22:21:49 +0000
commitd08a0e99c865509214c9a577babc9499f6d377b3 (patch)
treedf78b262b07c5ec8593ea0747903737aecb5c572 /main/rfc1867.c
parent9d89ef32956e1e5593d22232a5a0eaa5015343c1 (diff)
downloadphp-git-d08a0e99c865509214c9a577babc9499f6d377b3.tar.gz
An input filter might not simply strip stuff, it might also turn things
into entities or use some other mechanism which causes the filtered data to be longer than the original data. Ergo, pass in the address of the buffer instead so the filter is free to reallocate it.
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index eea22ce6a8..202dc8ee8d 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -805,7 +805,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
value = estrdup("");
}
- sapi_module.input_filter(PARSE_POST, param, value, strlen(value) TSRMLS_CC);
+ sapi_module.input_filter(PARSE_POST, param, &value, strlen(value) TSRMLS_CC);
safe_php_register_variable(param, value, array_ptr, 0 TSRMLS_CC);
if (!strcmp(param, "MAX_FILE_SIZE")) {
max_file_size = atol(value);