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-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java
Date Sat, 06 Apr 2002 03:06:32 GMT
remm        02/04/05 19:06:32

  Modified:    coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java
  Log:
  - Fix an off-by-one bug in the construction of the request dispatcher path.
  
  Revision  Changes    Path
  1.16      +5 -5      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- CoyoteRequest.java	3 Apr 2002 15:57:11 -0000	1.15
  +++ CoyoteRequest.java	6 Apr 2002 03:06:32 -0000	1.16
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
1.15 2002/04/03 15:57:11 remm Exp $
  - * $Revision: 1.15 $
  - * $Date: 2002/04/03 15:57:11 $
  + * $Header: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
1.16 2002/04/06 03:06:32 remm Exp $
  + * $Revision: 1.16 $
  + * $Date: 2002/04/06 03:06:32 $
    *
    * ====================================================================
    *
  @@ -123,7 +123,7 @@
    *
    * @author Remy Maucherat
    * @author Craig R. McClanahan
  - * @version $Revision: 1.15 $ $Date: 2002/04/03 15:57:11 $
  + * @version $Revision: 1.16 $ $Date: 2002/04/06 03:06:32 $
    */
   
   public class CoyoteRequest
  @@ -1063,7 +1063,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