projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix http_build_str(): urlencode [] brackets
[m6w6/ext-http]
/
http_url_api.c
diff --git
a/http_url_api.c
b/http_url_api.c
index cac64ec81ee880812cb10e186169363b50252855..cb0aeb5bd05d0eabcbfd018d71a4c30402d8e1ff 100644
(file)
--- a/
http_url_api.c
+++ b/
http_url_api.c
@@
-385,14
+385,14
@@
PHP_HTTP_API STATUS _http_urlencode_hash_recursive(HashTable *ht, phpstr *str, c
phpstr_init(&new_prefix);
if (prefix && prefix_len) {
phpstr_append(&new_prefix, prefix, prefix_len);
phpstr_init(&new_prefix);
if (prefix && prefix_len) {
phpstr_append(&new_prefix, prefix, prefix_len);
- phpstr_appends(&new_prefix, "
[
");
+ phpstr_appends(&new_prefix, "
%5B
");
}
phpstr_append(&new_prefix, encoded_key, encoded_len);
efree(encoded_key);
if (prefix && prefix_len) {
}
phpstr_append(&new_prefix, encoded_key, encoded_len);
efree(encoded_key);
if (prefix && prefix_len) {
- phpstr_appends(&new_prefix, "
]
");
+ phpstr_appends(&new_prefix, "
%5D
");
}
phpstr_fix(&new_prefix);
}
}
phpstr_fix(&new_prefix);
}