commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r267214 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java
Date Fri, 02 Sep 2005 14:38:14 GMT
Author: imario
Date: Fri Sep  2 07:38:11 2005
New Revision: 267214

URL: http://svn.apache.org/viewcvs?rev=267214&view=rev
Log:
fix: stipped too much trailing "/" from the pathname

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java?rev=267214&r1=267213&r2=267214&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileName.java
Fri Sep  2 07:38:11 2005
@@ -49,7 +49,7 @@
         this.type = type;
         if (absPath != null && absPath.length() > 0)
         {
-            if (absPath.endsWith("/"))
+            if (absPath.length() > 1 && absPath.endsWith("/"))
             {
                 this.absPath = absPath.substring(0, absPath.length() - 1);
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message