summaryrefslogtreecommitdiff
path: root/lib/curl_path.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-23 16:13:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-25 09:57:18 +0200
commit31e53584db5879894809fbde5445aac7553ac3e2 (patch)
tree2cdf73cadcb2bbc0e7d9308ef46b9a4a7e44db23 /lib/curl_path.c
parent646cc574f0b72723906224824a57cd37ee88e9df (diff)
downloadcurl-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/curl_path.c')
-rw-r--r--lib/curl_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_path.c b/lib/curl_path.c
index f42963463..fbd98cb39 100644
--- a/lib/curl_path.c
+++ b/lib/curl_path.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -42,7 +42,7 @@ CURLcode Curl_getworkingpath(struct connectdata *conn,
size_t working_path_len;
CURLcode result =
Curl_urldecode(data, data->state.up.path, 0, &working_path,
- &working_path_len, FALSE);
+ &working_path_len, REJECT_ZERO);
if(result)
return result;