]> granicus.if.org Git - php/commitdiff
revert the fix for #39763
authorAntony Dovgal <tony2001@php.net>
Fri, 8 Dec 2006 17:04:01 +0000 (17:04 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 8 Dec 2006 17:04:01 +0000 (17:04 +0000)
ext/filter/filter.c

index 3e3082436e4f737841483381ad427233e138920e..1b87db2e2dcb100c9f3179022baffba2dcf63981 100644 (file)
@@ -397,6 +397,8 @@ 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);
+               } else if (PG(magic_quotes_gpc)) {
+                       Z_STRVAL(new_var) = php_addslashes(*val, Z_STRLEN(new_var), &Z_STRLEN(new_var), 0 TSRMLS_CC);
                } else {
                        Z_STRVAL(new_var) = estrndup(*val, val_len);
                }