Author: remy.maucherat(a)jboss.com
Date: 2009-09-17 05:03:16 -0400 (Thu, 17 Sep 2009)
New Revision: 1170
Modified:
trunk/java/org/apache/tomcat/util/http/mapper/Mapper.java
trunk/webapps/docs/changelog.xml
Log:
- Port patch: small mapper fix.
Modified: trunk/java/org/apache/tomcat/util/http/mapper/Mapper.java
===================================================================
--- trunk/java/org/apache/tomcat/util/http/mapper/Mapper.java 2009-09-15 16:41:32 UTC (rev
1169)
+++ trunk/java/org/apache/tomcat/util/http/mapper/Mapper.java 2009-09-17 09:03:16 UTC (rev
1170)
@@ -730,7 +730,7 @@
if(mappingData.wrapper == null && noServletPath) {
// The path is empty, redirect to "/"
mappingData.redirectPath.setChars
- (path.getBuffer(), pathOffset, pathEnd);
+ (path.getBuffer(), pathOffset, pathEnd - pathOffset);
path.setEnd(pathEnd - 1);
return;
}
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2009-09-15 16:41:32 UTC (rev 1169)
+++ trunk/webapps/docs/changelog.xml 2009-09-17 09:03:16 UTC (rev 1170)
@@ -152,6 +152,9 @@
<fix>
Add flag to set Expires for cookie expiration on IE. (markt)
</fix>
+ <fix>
+ <bug>47225</bug>: Fix bad length when redirecting in the mapper.
(markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">