portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/content-server/src/java/org/apache/jetspeed/contentserver ContentFilter.java
Date Fri, 12 Mar 2004 14:31:52 GMT
weaver      2004/03/12 06:31:52

  Modified:    content-server/src/java/org/apache/jetspeed/contentserver
                        ContentFilter.java
  Log:
  Now correctly handles "" pathes
  
  Revision  Changes    Path
  1.4       +7 -2      jakarta-jetspeed-2/content-server/src/java/org/apache/jetspeed/contentserver/ContentFilter.java
  
  Index: ContentFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/content-server/src/java/org/apache/jetspeed/contentserver/ContentFilter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ContentFilter.java	11 Mar 2004 21:58:25 -0000	1.3
  +++ ContentFilter.java	12 Mar 2004 14:31:52 -0000	1.4
  @@ -153,7 +153,12 @@
                   else
                   {
                       // String fqPath = pathes.get(i) + "/html" + dir;
  -                    String fqPath = contentDir + "/" + pathes.get(i) + dir;
  +                    String sep="";
  +                    if(pathes.get(i).toString().trim().length() > 1)
  +                    {
  +                        sep = "/";
  +                    }
  +                    String fqPath = contentDir + sep + pathes.get(i) + dir;
                       
                       fqFile = new File(fqPath);
                       System.out.println("Actual content located at: "
  
  
  

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


Mime
View raw message