Reject ftp URLConnection containing /r/n in user info.

Change-Id: Iac06b3cc9a8a184f918d817d266eac55699d13bc
diff --git a/ojluni/src/main/java/sun/net/www/protocol/ftp/FtpURLConnection.java b/ojluni/src/main/java/sun/net/www/protocol/ftp/FtpURLConnection.java
index e2b7fa1..fd96343 100755
--- a/ojluni/src/main/java/sun/net/www/protocol/ftp/FtpURLConnection.java
+++ b/ojluni/src/main/java/sun/net/www/protocol/ftp/FtpURLConnection.java
@@ -184,6 +184,12 @@
         }
 
         if (userInfo != null) { // get the user and password
+            // Android-changed: Added a test for CR/LF presence in the userInfo
+            if (userInfo.indexOf("\r") != -1 || userInfo.indexOf("\n") != -1) {
+                throw new IOException("<CR> and/or <LF> characters in username and password are"
+                        + " not permitted");
+            }
+
             int delimiter = userInfo.indexOf(':');
             if (delimiter == -1) {
                 user = ParseUtil.decode(userInfo);