This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 4d0615a5c7 Fix case sensitive handling of the protocol host name
4d0615a5c7 is described below
commit 4d0615a5c718c260d6d4e0b944a050f09a490c02
Author: remm <[email protected]>
AuthorDate: Mon Mar 16 12:58:30 2026 +0100
Fix case sensitive handling of the protocol host name
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 3 ++-
webapps/docs/changelog.xml | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index ad85253b87..087bf06b60 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -531,7 +531,8 @@ public abstract class AbstractEndpoint<S, U> {
public boolean checkSni(String sniHostName, String protocolHostName) {
return (!strictSni || !isSSLEnabled()
|| (sniHostName != null &&
sniHostName.equalsIgnoreCase(protocolHostName))
- || getSSLHostConfig(sniHostName) ==
getSSLHostConfig(protocolHostName));
+ || getSSLHostConfig(sniHostName) == getSSLHostConfig(
+ protocolHostName != null ?
protocolHostName.toLowerCase(Locale.ENGLISH) : null));
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 3843ed82d7..2d53343e42 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -221,6 +221,9 @@
Report handshake issues as <code>SSLException</code> in the FFM
code, rather than <code>IllegalStateException</code>. (remm)
</fix>
+ <fix>
+ Fix case sensitive handling of the protocol host name. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]