remm 2004/04/28 15:05:10 Modified: catalina/src/share/org/apache/coyote/tomcat5 CoyoteAdapter.java Log: - Fix normalization where the URI is "/." (this would have sent a redirect). Revision Changes Path 1.25 +2 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java Index: CoyoteAdapter.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- CoyoteAdapter.java 26 Apr 2004 15:31:09 -0000 1.24 +++ CoyoteAdapter.java 28 Apr 2004 22:05:10 -0000 1.25 @@ -486,7 +486,7 @@ // If the URI ends with "/." or "/..", then we append an extra "/" // Note: It is possible to extend the URI by 1 without any side effect // as the next character is a non-significant WS. - if (((end - start) > 2) && (b[end - 1] == (byte) '.')) { + if (((end - start) >= 2) && (b[end - 1] == (byte) '.')) { if ((b[end - 2] == (byte) '/') || ((b[end - 2] == (byte) '.') && (b[end - 3] == (byte) '/'))) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]