mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:53:38 +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
|
|
@ -116,7 +116,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
|
|||
newp += 2;
|
||||
|
||||
/* ... and finally unescape */
|
||||
result = Curl_urldecode(data, newp, 0, &sel, &len, FALSE);
|
||||
result = Curl_urldecode(data, newp, 0, &sel, &len, REJECT_ZERO);
|
||||
free(gopherpath);
|
||||
if(result)
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue