You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2004/06/19 19:52:01 UTC

cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteResponse.java

markt       2004/06/19 10:52:01

  Modified:    coyote/src/java/org/apache/coyote/tomcat4
                        CoyoteResponse.java
  Log:
  Fix bug 18147. Prevent mailto URLs from being mangled in re-directs.
  
  Revision  Changes    Path
  1.36      +5 -1      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.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- CoyoteResponse.java	16 May 2004 16:38:12 -0000	1.35
  +++ CoyoteResponse.java	19 Jun 2004 17:52:01 -0000	1.36
  @@ -1250,6 +1250,10 @@
           if (location == null)
               return (location);
   
  +		if (location.toLowerCase().startsWith("mailto")) {
  +			return (location);
  +		}
  +		
           // Construct a new absolute URL if possible (cribbed from
           // the DefaultErrorPage servlet)
           URL url = null;
  
  
  

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