mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
parent
8984a42ae4
commit
2ad44ce70d
@ -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…
x
Reference in New Issue
Block a user