Commit d6a72fe8 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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.

Bug: 36637271
Test: FtpURLConnectionTest with manual intervention, the test cannot
      be backported due to issues with dependencies.

Change-Id: Ic2eb918930e3696cc9a20a309ad6c23cf6e58efb
parent fffeb3bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment