markt       2004/05/16 09:38:12

  Modified:    coyote/src/java/org/apache/coyote/tomcat4
                        CoyoteResponse.java
  Log:
  Fix bug 22413. response.encodeURL(response.encodeURL("xxx.jsp") now works correctly 
in root context.
  
  Revision  Changes    Path
  1.35      +2 -2      
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteResponse.java
  
  Index: CoyoteResponse.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteResponse.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- CoyoteResponse.java       24 Feb 2004 08:54:29 -0000      1.34
  +++ CoyoteResponse.java       16 May 2004 16:38:12 -0000      1.35
  @@ -1221,7 +1221,7 @@
               return (false);
   
           String contextPath = getContext().getPath();
  -        if ((contextPath != null) && (contextPath.length() > 0)) {
  +        if (contextPath != null) {
               String file = url.getFile();
               if ((file == null) || !file.startsWith(contextPath))
                   return (false);
  
  
  

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

Reply via email to