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 4e86315dc1 Make comments consistent. Add changelog entry.
4e86315dc1 is described below

commit 4e86315dc103aa854ea1dd5515e7f6293dc05112
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 4 15:45:53 2025 +0100

    Make comments consistent. Add changelog entry.
---
 .../org/apache/catalina/valves/rewrite/RandomizedTextRewriteMap.java | 2 +-
 webapps/docs/changelog.xml                                           | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/java/org/apache/catalina/valves/rewrite/RandomizedTextRewriteMap.java 
b/java/org/apache/catalina/valves/rewrite/RandomizedTextRewriteMap.java
index 2b6ccce5f9..2f62721bc6 100644
--- a/java/org/apache/catalina/valves/rewrite/RandomizedTextRewriteMap.java
+++ b/java/org/apache/catalina/valves/rewrite/RandomizedTextRewriteMap.java
@@ -53,7 +53,7 @@ public class RandomizedTextRewriteMap implements RewriteMap {
                     // Ignore comment line or empty lines
                     continue;
                 } else if (line.indexOf('#') > 0) {
-                    // comment characters after '#'
+                    // Ignore comment characters after '#'
                     line = line.substring(0, line.indexOf('#')).trim();
                 }
                 String[] keyValuePair = line.split(" ", 2);
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 701b6d2e38..9323673886 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -126,6 +126,11 @@
         the session id if appropriate, and handle cross context with different
         session configuration when using rewrite. (remm)
       </fix>
+      <add>
+        <pr>863</pr>: Add support for comments at the end of lines in text
+        rewrite map files to align behaviour with Apache httpd. Pull request
+        provided by Chenjp. (markt)  
+      </add>
     </changelog>
   </subsection>
   <subsection name="Coyote">


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

Reply via email to