Regression with semicolon in ftp password #1252

balcaina opened this Issue Feb 7, 2017 · 3 comments


None yet

2 participants

balcaina commented Feb 7, 2017

I did this

I am using the curl library in my program and I recently upgraded from version 7.21.4 to version 7.50.1 and I noticed a behavior change with semicolon in ftp password for example when using the URL "ftp://user:pass;"

I expected the following

I expected my program to use "user" and "pass;word" for authentication when using the URL "ftp://user:pass;" but instead I have "user" and "pass".

With curl 7.21.4, the URL "ftp://user:pass;" was giving "user" and "pass;word" for authentication.

curl/libcurl version

curl -V
curl 7.50.1 (x86_64-pc-linux-gnu) libcurl/7.50.1 OpenSSL/1.0.2h zlib/1.2.5 c-ares/1.7.5
Protocols: file ftp ftps http https smb smbs smtp smtps
Features: AsynchDNS Largefile NTLM NTLM_WB SSL libz UnixSockets

operating system

uname -r

@bagder bagder self-assigned this Feb 7, 2017
bagder commented Feb 7, 2017 edited

Agreed. Regression brought by 73aa955. The semicolon (and the associated option it was added for) should not be treated like this for FTP:// URLs.

Semicolons are sub-delims according to RFC3986 which allows them to serve as delimiters for scheme-specific things, but there's no such field for FTP there and thus it should be allowed...

@bagder bagder added the URL label Feb 7, 2017
@bagder bagder closed this in c5c4e81 Feb 10, 2017
bagder commented Feb 10, 2017

thanks for your report!


Thanks for the fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment