diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-09-30 16:46:47 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-10-31 08:46:35 +0100 |
commit | 1833a45dde4d27febfce42813699533b1ae993d1 (patch) | |
tree | 0ecb85121d473a15241fb502f6f722274895485a /lib | |
parent | ce8d09483eea2fcb1b50e323e1a8ed1f3613b2e3 (diff) |
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!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 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; } |