This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 175dc75fc4 Fix back-port
175dc75fc4 is described below

commit 175dc75fc428930034a6c93fb52f830d955d8e64
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Mar 31 17:34:05 2025 +0100

    Fix back-port
---
 java/org/apache/catalina/valves/rewrite/RewriteValve.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/valves/rewrite/RewriteValve.java 
b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
index f049e5eb7e..b4e73f6845 100644
--- a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
+++ b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
@@ -552,7 +552,7 @@ public class RewriteValve extends ValveBase {
                         // This is decoded and normalized
                         
chunk.append(request.getServletContext().getContextPath());
                     }
-                    chunk.append(URLDecoder.decode(urlStringRewriteEncoded, 
uriCharset));
+                    chunk.append(URLDecoder.decode(urlStringRewriteEncoded, 
uriCharset.name()));
                     // Set the new Query if there is one
                     if (queryStringRewriteEncoded != null) {
                         
request.getCoyoteRequest().queryString().setChars(MessageBytes.EMPTY_CHAR_ARRAY,
 0, 0);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to