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 /ext/mbstring | |
| 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 'ext/mbstring')
| -rw-r--r-- | ext/mbstring/mb_gpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mb_gpc.c b/ext/mbstring/mb_gpc.c index 9003150537..74402ebbfd 100644 --- a/ext/mbstring/mb_gpc.c +++ b/ext/mbstring/mb_gpc.c @@ -342,7 +342,7 @@ int _php_mb_encoding_handler_ex(int data_type, zval *arg, char *res, char *separ val_len = len_list[n]; } n++; - val_len = sapi_module.input_filter(data_type, var, val, val_len TSRMLS_CC); + val_len = sapi_module.input_filter(data_type, var, &val, val_len TSRMLS_CC); /* add variable to symbol table */ php_register_variable_safe(var, val, val_len, array_ptr TSRMLS_CC); if (convd != NULL){ |
