FtpURLConnection: Throw on invalid characters in commands.
RFC 959 says :
<string> ::= <char> | <char><string>
<char> ::= any of the 128 ASCII characters except <CR> and <LF>
Some commands have even stricter requirements, but are currently
unused by this implementation.
Test: FtpURLConnectionTest with manual intervention, the test cannot
be backported due to issues with dependencies.
(cherry picked from commit d6a72fe81bcc3e8be3ead3c0f84806bc9f1a979a)
2 files changed