MFB: Back out bugfix for #42718 as this broke magic_quotes_gpc

This commit is contained in:
Scott MacVicar 2008-12-06 17:25:35 +00:00
parent e244527833
commit e5e17578bf

View file

@ -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_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;
Z_STRVAL(new_var) = estrndup(*val, val_len);
INIT_PZVAL(tmp_new_var);