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/SAPI.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/SAPI.c')
| -rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 117d868fc8..94a333c967 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -823,7 +823,7 @@ SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zva return SUCCESS; } -SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char *val, unsigned int val_len TSRMLS_DC)) +SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len TSRMLS_DC)) { sapi_module.input_filter = input_filter; return SUCCESS; |
