mirror of
https://github.com/curl/curl.git
synced 2026-05-30 05:47:28 +03:00
parent
8984a42ae4
commit
2ad44ce70d
1 changed files with 3 additions and 1 deletions
|
|
@ -4134,8 +4134,10 @@ CURLcode ftp_parse_url_path(struct Curl_easy *data)
|
|||
|
||||
/* url-decode ftp path before further evaluation */
|
||||
result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen, REJECT_CTRL);
|
||||
if(result)
|
||||
if(result) {
|
||||
failf(data, "path contains control characters");
|
||||
return result;
|
||||
}
|
||||
|
||||
switch(data->set.ftp_filemethod) {
|
||||
case FTPFILE_NOCWD: /* fastest, but less standard-compliant */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue