This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new fe88e5e73f Fix last remaining double decoding issue
fe88e5e73f is described below
commit fe88e5e73fef61e74d6c3c5dfbc8c8b735046f51
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jun 4 17:04:02 2026 +0100
Fix last remaining double decoding issue
---
java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java | 2 +-
webapps/docs/changelog.xml | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
b/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
index 0451582d01..785a352d0b 100644
--- a/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
+++ b/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
@@ -610,7 +610,7 @@ public class SecurityConstraint extends XmlEncodingBase
implements Serializable
}
if (create) {
- collection.addPattern(urlPattern);
+ collection.addPatternDecoded(urlPattern);
constraint.addCollection(collection);
return constraint;
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 5bc6e555b6..1c04862c51 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -246,6 +246,10 @@
Improve the detection of cross-context dispatches when using a
<code>RequestDispatcher</code>. (markt)
</fix>
+ <fix>
+ Fix various instances of double decoding of URL patterns configured
+ either programmatically or in web.xml. (remm/markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]