luehe       2003/03/12 12:54:25

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardContextMapper.java
  Log:
  Remove any URI parameters from the request URI, so they won't be considered by
  the wrapper/context mapping algorithm
  
  Revision  Changes    Path
  1.4       +14 -4     
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContextMapper.java
  
  Index: StandardContextMapper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContextMapper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StandardContextMapper.java        23 Oct 2002 19:57:30 -0000      1.3
  +++ StandardContextMapper.java        12 Mar 2003 20:54:25 -0000      1.4
  @@ -199,6 +199,16 @@
               ((HttpServletRequest) request.getRequest()).getContextPath();
           String requestURI = ((HttpRequest) request).getDecodedRequestURI();
           String relativeURI = requestURI.substring(contextPath.length());
  +       
  +     /*
  +      * Remove any URI params from the relativeURI, so they won't be 
  +      * considered by the mapping algorithm.
  +      */
  +        int uriParamsIndex = relativeURI.indexOf(';');
  +        if (uriParamsIndex >= 0) {
  +            relativeURI = relativeURI.substring(0, uriParamsIndex);
  +     }
  +
           if (debug >= 1)
               context.log("Mapping contextPath='" + contextPath +
                           "' with requestURI='" + requestURI +
  
  
  

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

Reply via email to