diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2003-02-20 22:21:49 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2003-02-20 22:21:49 +0000 |
| commit | d08a0e99c865509214c9a577babc9499f6d377b3 (patch) | |
| tree | df78b262b07c5ec8593ea0747903737aecb5c572 /main/rfc1867.c | |
| parent | 9d89ef32956e1e5593d22232a5a0eaa5015343c1 (diff) | |
| download | php-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.c | 2 |
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); |
