tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util FileUtil.java
Date Tue, 11 Jul 2000 20:12:00 GMT
nacho       00/07/11 13:11:59

  Modified:    src/share/org/apache/tomcat/util Tag: tomcat_32
                        FileUtil.java
  Log:
  BUGFIX:
  
  In windows, Tomcat can serve the text of jsp page only
  changing the case of the file name, now it performs
  the safe checks in case sensitive way.
  
  Catched by Serge Knystautas [sergek@lokitech.com]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.1   +5 -5      jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java
  
  Index: FileUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v
  retrieving revision 1.9
  retrieving revision 1.9.2.1
  diff -u -r1.9 -r1.9.2.1
  --- FileUtil.java	2000/06/23 21:49:06	1.9
  +++ FileUtil.java	2000/07/11 20:11:58	1.9.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v 1.9
2000/06/23 21:49:06 nacho Exp $
  - * $Revision: 1.9 $
  - * $Date: 2000/06/23 21:49:06 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v 1.9.2.1
2000/07/11 20:11:58 nacho Exp $
  + * $Revision: 1.9.2.1 $
  + * $Date: 2000/07/11 20:11:58 $
    *
    * ====================================================================
    *
  @@ -158,9 +158,9 @@
   	// happens on flavors of Windows.
   	if (File.separatorChar  == '\\') {
   	    // On Windows check ignore case....
  -	    if (!realPath.equalsIgnoreCase(canPath)){
  +	    if (!realPath.equals(canPath)){
               int ls=realPath.lastIndexOf('\\');
  -            if ( (ls > 0) && !realPath.substring(0,ls).equalsIgnoreCase(canPath)
)
  +            if ( (ls > 0) && !realPath.substring(0,ls).equals(canPath) )
           		return null;
   	    }
   	}
  
  
  

Mime
View raw message