Commit 1833a45d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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!
parent ce8d0948
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }