markt 2004/06/20 13:58:31 Modified: coyote/src/java/org/apache/coyote/tomcat4 CoyoteResponse.java Log: Fix bug 18147. Prevent mailto URLs from being mangled in re-directs. - With thanks to Bill Barker for the help and advice Revision Changes Path 1.38 +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.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- CoyoteResponse.java 19 Jun 2004 18:53:44 -0000 1.37 +++ CoyoteResponse.java 20 Jun 2004 20:58:31 -0000 1.38 @@ -1255,6 +1255,10 @@ URL url = null; try { url = new URL(location); + + if (url.getAuthority() == null) + return location; + } catch (MalformedURLException e1) { HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]