mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:53:32 +03:00
escape: make the URL decode able to reject only %00 bytes
... or all "control codes" or nothing. Assisted-by: Nicolas Sterchele
This commit is contained in:
parent
646cc574f0
commit
31e53584db
16 changed files with 60 additions and 34 deletions
|
|
@ -1185,7 +1185,10 @@ CURLUcode curl_url_get(CURLU *u, CURLUPart what,
|
|||
if(urldecode) {
|
||||
char *decoded;
|
||||
size_t dlen;
|
||||
CURLcode res = Curl_urldecode(NULL, *part, 0, &decoded, &dlen, TRUE);
|
||||
/* this unconditional rejection of control bytes is documented
|
||||
API behavior */
|
||||
CURLcode res = Curl_urldecode(NULL, *part, 0, &decoded, &dlen,
|
||||
REJECT_CTRL);
|
||||
free(*part);
|
||||
if(res) {
|
||||
*part = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue