larryi 01/07/18 14:06:38
Modified: src/share/org/apache/tomcat/modules/session SessionId.java
Log:
Fix postReadRequest() to remove ";jsessionid=" from unparsedURI too.
Revision Changes Path
1.11 +7 -0
jakarta-tomcat/src/share/org/apache/tomcat/modules/session/SessionId.java
Index: SessionId.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/session/SessionId.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SessionId.java 2001/05/26 18:03:19 1.10
+++ SessionId.java 2001/07/18 21:06:38 1.11
@@ -139,6 +139,13 @@
// rewrite URL, do I need to do anything more?
request.requestURI().setString(uri.substring(0, foundAt));
+ // remove from unparsedURI too, if not already
+ foundAt = request.unparsedURI().indexOf(sig);
+ if (foundAt!=-1) {
+ uri=request.unparsedURI().toString();
+ request.unparsedURI().setString(uri.substring(0, foundAt));
+ }
+
// No validate now - we just note that this is what the user
// requested.
request.setSessionIdSource( Request.SESSIONID_FROM_URL);