From 04872050e4132b9905f3b63c5ec2c728586b92f2 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 7 Dec 2006 10:59:35 +0000 Subject: [PATCH] fix #39763 (magic quotes are applied twice by ext/filter) no need to add slashes manually, they are added by php_register_variable_ex() --- ext/filter/filter.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 42c058f43b..2b49535b27 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -397,13 +397,7 @@ static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int Z_STRVAL(new_var) = estrndup(*val, val_len); INIT_PZVAL(tmp_new_var); php_zval_filter(&tmp_new_var, IF_G(default_filter), IF_G(default_filter_flags), NULL, NULL/*charset*/, 0 TSRMLS_CC); - } -#if PHP_VERSION_ID<60000 - else if (PG(magic_quotes_gpc)) { - Z_STRVAL(new_var) = php_addslashes(*val, Z_STRLEN(new_var), &Z_STRLEN(new_var), 0 TSRMLS_CC); - } -#endif - else { + } else { Z_STRVAL(new_var) = estrndup(*val, val_len); } } else { /* empty string */ -- 2.40.0