commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r630042 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
Date Thu, 21 Feb 2008 23:04:23 GMT
Author: rwinston
Date: Thu Feb 21 15:04:21 2008
New Revision: 630042

URL: http://svn.apache.org/viewvc?rev=630042&view=rev
Log:
Fix strict check so it actually works :-) 
Now the broken functional test case provided in NET-148 works.

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java?rev=630042&r1=630041&r2=630042&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
Thu Feb 21 15:04:21 2008
@@ -271,7 +271,7 @@
 
     // The RFC-compliant multiline termination check
     private boolean __strictCheck(String line, String code) {
-    	return (line.startsWith(code));
+    	return (!(line.startsWith(code) && line.charAt(3) == ' '));
     }
     
     // The strict check is too strong a condition because of non-conforming ftp



Mime
View raw message