summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-08 17:04:01 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-08 17:04:01 +0000
commitb32bf9636372295aeda2f307958f8fdf70a17cd6 (patch)
tree9f3db98ef62a4a9d4a0ab29b1492a83a609a00a3 /ext
parent108a2fc64c968ba2cee92fb6bb1fe6a493958923 (diff)
downloadphp-git-b32bf9636372295aeda2f307958f8fdf70a17cd6.tar.gz
revert the fix for #39763
Diffstat (limited to 'ext')
-rw-r--r--ext/filter/filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/filter/filter.c b/ext/filter/filter.c
index 3e3082436e..1b87db2e2d 100644
--- a/ext/filter/filter.c
+++ b/ext/filter/filter.c
@@ -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);
}