diff options
author | Jeff King <peff@peff.net> | 2011-07-18 03:48:51 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-20 11:38:34 -0700 |
commit | 66c8448543432308e8fce5e3e04076e875410f67 (patch) | |
tree | ac99babf4737c855c36576a69254a17f5b5f6b2b /url.h | |
parent | d79bcd68056250d7c03bf9b12728ee2fd85a0ab3 (diff) | |
download | git-66c8448543432308e8fce5e3e04076e875410f67.tar.gz |
url: decode buffers that are not NUL-terminated
The url_decode function needs only minor tweaks to handle
arbitrary buffers. Let's do those tweaks, which cleans up an
unreadable mess of temporary strings in http.c.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'url.h')
-rw-r--r-- | url.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4,6 +4,7 @@ extern int is_url(const char *url); extern int is_urlschemechar(int first_flag, int ch); extern char *url_decode(const char *url); +extern char *url_decode_mem(const char *url, int len); extern char *url_decode_parameter_name(const char **query); extern char *url_decode_parameter_value(const char **query); |