remm        2003/08/26 07:07:13

  Modified:    catalina/src/share/org/apache/catalina/core
                        ApplicationFilterFactory.java
  Log:
  - Fix small filter extension mapping bug: if the extension of the request starts
    with the tested path, it would have been matched (bug 22546).
  
  Revision  Changes    Path
  1.10      +6 -4      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationFilterFactory.java
  
  Index: ApplicationFilterFactory.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationFilterFactory.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ApplicationFilterFactory.java     25 May 2003 14:27:01 -0000      1.9
  +++ ApplicationFilterFactory.java     26 Aug 2003 14:07:13 -0000      1.10
  @@ -289,7 +289,9 @@
               int slash = requestPath.lastIndexOf('/');
               int period = requestPath.lastIndexOf('.');
               if ((slash >= 0) && (period > slash) 
  -                && (period != requestPath.length() - 1)) {
  +                && (period != requestPath.length() - 1)
  +                && ((requestPath.length() - period) 
  +                    == (testPath.length() - 1))) {
                   return (testPath.regionMatches(2, requestPath, period + 1,
                                                  testPath.length() - 2));
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to