tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/servlets DefaultServlet.java
Date Fri, 14 Apr 2000 22:58:18 GMT
costin      00/04/14 15:58:18

  Modified:    src/share/org/apache/tomcat/servlets DefaultServlet.java
  Log:
  Merged .ext/ fix from 31 branch.
  
  Revision  Changes    Path
  1.14      +3 -1      jakarta-tomcat/src/share/org/apache/tomcat/servlets/DefaultServlet.java
  
  Index: DefaultServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/servlets/DefaultServlet.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DefaultServlet.java	2000/04/07 17:32:21	1.13
  +++ DefaultServlet.java	2000/04/14 22:58:17	1.14
  @@ -212,7 +212,9 @@
   	    // check that .jsp/ doesn't slip through on Windows!
   	    if( debug > 0 ) contextF.log( "DefaultServlet: serving file: "  + file);
   	    if (! absPath.endsWith("/") &&
  -	        ! absPath.endsWith("\\")) {
  +	        ! absPath.endsWith("\\") &&
  +		! request.getRequestURI().endsWith("/") &&  // GS
  +		! request.getRequestURI().endsWith(".")) {  // GS
   	        serveFile(file, request, response);
   	    } else {
   	        response.sendError(response.SC_NOT_FOUND,
  
  
  

Mime
View raw message