tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpRequestBase.java
Date Sat, 06 Apr 2002 03:07:03 GMT
remm        02/04/05 19:07:03

  Modified:    catalina/src/share/org/apache/catalina/connector Tag:
                        tomcat_40_branch HttpRequestBase.java
  Log:
  - Fix an off-by-one bug in the construction of the request dispatcher path.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.31.2.3  +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java
  
  Index: HttpRequestBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v
  retrieving revision 1.31.2.2
  retrieving revision 1.31.2.3
  diff -u -r1.31.2.2 -r1.31.2.3
  --- HttpRequestBase.java	23 Mar 2002 17:35:02 -0000	1.31.2.2
  +++ HttpRequestBase.java	6 Apr 2002 03:07:03 -0000	1.31.2.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v
1.31.2.2 2002/03/23 17:35:02 remm Exp $
  - * $Revision: 1.31.2.2 $
  - * $Date: 2002/03/23 17:35:02 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java,v
1.31.2.3 2002/04/06 03:07:03 remm Exp $
  + * $Revision: 1.31.2.3 $
  + * $Date: 2002/04/06 03:07:03 $
    *
    * ====================================================================
    *
  @@ -102,7 +102,7 @@
    * be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.31.2.2 $ $Date: 2002/03/23 17:35:02 $
  + * @version $Revision: 1.31.2.3 $ $Date: 2002/04/06 03:07:03 $
    */
   
   public class HttpRequestBase
  @@ -754,7 +754,7 @@
   
           int pos = servletPath.lastIndexOf('/');
           String relative = null;
  -        if (pos > 0) {
  +        if (pos >= 0) {
               relative = RequestUtil.normalize
                   (servletPath.substring(0, pos + 1) + path);
           } else {
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message