You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rw...@apache.org on 2008/02/22 00:04:23 UTC
svn commit: r630042 -
/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
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