cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/servlet CocoonServlet.java
Date Fri, 27 Apr 2001 14:57:52 GMT
bloritsch    01/04/27 07:57:51

  Modified:    src/org/apache/cocoon/servlet Tag: xml-cocoon2
                        CocoonServlet.java
  Log:
  Fix for absolute path check.  It now considers anything with a ':' as the second
  character as an absolute path (MS specific).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.90  +3 -2      xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java,v
  retrieving revision 1.1.4.89
  retrieving revision 1.1.4.90
  diff -u -r1.1.4.89 -r1.1.4.90
  --- CocoonServlet.java	2001/04/25 17:08:36	1.1.4.89
  +++ CocoonServlet.java	2001/04/27 14:57:49	1.1.4.90
  @@ -56,7 +56,7 @@
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.4.89 $ $Date: 2001/04/25 17:08:36 $
  + * @version CVS $Revision: 1.1.4.90 $ $Date: 2001/04/27 14:57:49 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -219,7 +219,8 @@
                    String s = st.nextToken();
                    if (i++ > 0)
                        sb.append(System.getProperty("path.separator"));
  -                 if (s.charAt(0) == System.getProperty("file.separator").charAt(0)) {
  +                 if ((s.charAt(0) == System.getProperty("file.separator").charAt(0)) ||
  +                     (s.charAt(1) == ':')) {
                        log.debug ("extraClassPath is absolute: " + extraClassPath);
                        sb.append(s);
                    } else {
  
  
  

----------------------------------------------------------------------
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