cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/util NetUtils.java
Date Tue, 30 Oct 2001 09:06:50 GMT
cziegeler    01/10/30 01:06:50

  Modified:    src/org/apache/cocoon/util NetUtils.java
  Log:
  Fixing the fix
  
  Revision  Changes    Path
  1.9       +3 -2      xml-cocoon2/src/org/apache/cocoon/util/NetUtils.java
  
  Index: NetUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/util/NetUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- NetUtils.java	2001/10/30 08:51:44	1.8
  +++ NetUtils.java	2001/10/30 09:06:50	1.9
  @@ -16,7 +16,7 @@
    * utility methods
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.8 $ $Date: 2001/10/30 08:51:44 $
  + * @version CVS $Revision: 1.9 $ $Date: 2001/10/30 09:06:50 $
    */
   
   public class NetUtils {
  @@ -109,7 +109,8 @@
               if (!slashPresent) path += "/";
               int index = StringUtils.matchStrings(path, absoluteResource);
               if (index > 0 && path.charAt(index-1) != '/') {
  -                index = 0;
  +                index = path.substring(0, index).lastIndexOf('/');
  +                index++;
               }
               String pathDiff = path.substring(index);
               String resource = absoluteResource.substring(index);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message