X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_url_api.c;h=cb0aeb5bd05d0eabcbfd018d71a4c30402d8e1ff;hb=f9a650f4b1ed0baad4a41f6e130991f328dc64b9;hp=cac64ec81ee880812cb10e186169363b50252855;hpb=5b969e9665308562361cb01c0f63a2793f81f0ef;p=m6w6%2Fext-http diff --git a/http_url_api.c b/http_url_api.c index cac64ec..cb0aeb5 100644 --- 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_appends(&new_prefix, "["); + phpstr_appends(&new_prefix, "%5B"); } 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); }