mirror of
https://github.com/curl/curl.git
synced 2026-04-30 22:57:51 +03:00
ftp: check for previous patch must be case sensitive!
... otherwise example.com/PATH and example.com/path would be assumed to be the same and they usually aren't!
This commit is contained in:
parent
ce8d09483e
commit
1833a45dde
1 changed files with 1 additions and 1 deletions
|
|
@ -4415,7 +4415,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
|
|||
|
||||
dlen -= ftpc->file?strlen(ftpc->file):0;
|
||||
if((dlen == strlen(ftpc->prevpath)) &&
|
||||
strnequal(path, ftpc->prevpath, dlen)) {
|
||||
!strncmp(path, ftpc->prevpath, dlen)) {
|
||||
infof(data, "Request has same path as previous transfer\n");
|
||||
ftpc->cwddone = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue