This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new acb0eb0dbd Fix case sensitive handling of the protocol host name
acb0eb0dbd is described below
commit acb0eb0dbd56d85e33ca586d31d8d49d50420982
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 2838757c95..c0a0b79bc8 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -740,7 +740,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 d4202f7576..316baea206 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -319,6 +319,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]