tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteResponse.java
Date Sat, 19 Jun 2004 18:14:23 GMT
markt       2004/06/19 11:14:23

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteResponse.java
  Log:
  Fix bug 18147. Prevent mailto URLs from being mangled in re-directs.
    - Ported from TC4
  
  Revision  Changes    Path
  1.19      +5 -1      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteResponse.java
  
  Index: CoyoteResponse.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteResponse.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CoyoteResponse.java	17 Jun 2004 01:08:08 -0000	1.18
  +++ CoyoteResponse.java	19 Jun 2004 18:14:22 -0000	1.19
  @@ -1421,6 +1421,10 @@
           if (location == null)
               return (location);
   
  +		if (location.toLowerCase().startsWith("mailto")) {
  +			return (location);
  +		}
  +		
           boolean leadingSlash = location.startsWith("/");
   
           if (leadingSlash 
  
  
  

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


Mime
View raw message