diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-23 16:13:50 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-25 09:57:18 +0200 |
commit | 31e53584db5879894809fbde5445aac7553ac3e2 (patch) | |
tree | 2cdf73cadcb2bbc0e7d9308ef46b9a4a7e44db23 /lib/dict.c | |
parent | 646cc574f0b72723906224824a57cd37ee88e9df (diff) | |
download | curl-31e53584db5879894809fbde5445aac7553ac3e2.tar.gz |
escape: make the URL decode able to reject only %00 bytes
... or all "control codes" or nothing.
Assisted-by: Nicolas Sterchele
Diffstat (limited to 'lib/dict.c')
-rw-r--r-- | lib/dict.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dict.c b/lib/dict.c index c802deeff..f529b48f7 100644 --- a/lib/dict.c +++ b/lib/dict.c @@ -99,7 +99,8 @@ static char *unescape_word(struct Curl_easy *data, const char *inputbuff) char *dictp; size_t len; - CURLcode result = Curl_urldecode(data, inputbuff, 0, &newp, &len, FALSE); + CURLcode result = Curl_urldecode(data, inputbuff, 0, &newp, &len, + REJECT_NADA); if(!newp || result) return NULL; |