projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
9959c78
)
do not consider slashes escape-worthy!
author
Michael Wallner
<mike@php.net>
Wed, 9 Jul 2014 18:15:08 +0000
(20:15 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 9 Jul 2014 18:15:08 +0000
(20:15 +0200)
php_http_params.c
patch
|
blob
|
history
diff --git
a/php_http_params.c
b/php_http_params.c
index f8e6e88bce1a436bee9a01c1a659b7c5718d0ece..1757ec9fc5f68dc0d62cf6712b4bbd5cc62c742c 100644
(file)
--- a/
php_http_params.c
+++ b/
php_http_params.c
@@
-71,7
+71,7
@@
static inline void prepare_escaped(zval *zv TSRMLS_DC)
Z_STRVAL_P(zv) = php_addcslashes(Z_STRVAL_P(zv), Z_STRLEN_P(zv), &Z_STRLEN_P(zv), 1,
ZEND_STRL("\0..\37\173\\\"") TSRMLS_CC);
- if (len != Z_STRLEN_P(zv) || strpbrk(Z_STRVAL_P(zv), "()<>@,;:\"
/
[]?={} ")) {
+ if (len != Z_STRLEN_P(zv) || strpbrk(Z_STRVAL_P(zv), "()<>@,;:\"[]?={} ")) {
zval tmp = *zv;
int len = Z_STRLEN_P(zv) + 2;
char *str = emalloc(len + 1);