Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46105
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 30 Oct 2008 23:46:41 +0000 (23:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 30 Oct 2008 23:46:41 +0000 (23:46 +0000)
Correctly set URI encoding when replaying request after FORM auth

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@709294 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/authenticator/FormAuthenticator.java

index 3da730f..774c8f1 100644 (file)
@@ -426,7 +426,9 @@ public class FormAuthenticator
         }
         
         request.getCoyoteRequest().getParameters().recycle();
-        
+        request.getCoyoteRequest().getParameters().setQueryStringEncoding(
+                request.getConnector().getURIEncoding());
+
         if ("POST".equalsIgnoreCase(saved.getMethod())) {
             ByteChunk body = saved.getBody();