mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
MFB: Back out bugfix for #42718 as this broke magic_quotes_gpc
This commit is contained in:
parent
e244527833
commit
e5e17578bf
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int
|
||||||
Z_STRLEN(new_var) = val_len;
|
Z_STRLEN(new_var) = val_len;
|
||||||
Z_TYPE(new_var) = IS_STRING;
|
Z_TYPE(new_var) = IS_STRING;
|
||||||
|
|
||||||
if (IF_G(default_filter) != FILTER_UNSAFE_RAW || IF_G(default_filter_flags) != 0) {
|
if (IF_G(default_filter) != FILTER_UNSAFE_RAW) {
|
||||||
zval *tmp_new_var = &new_var;
|
zval *tmp_new_var = &new_var;
|
||||||
Z_STRVAL(new_var) = estrndup(*val, val_len);
|
Z_STRVAL(new_var) = estrndup(*val, val_len);
|
||||||
INIT_PZVAL(tmp_new_var);
|
INIT_PZVAL(tmp_new_var);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue