You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2026/03/16 12:01:03 UTC

(tomcat) 01/02: Fix case sensitive handling of the protocol host name

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

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

commit 021d1f833e38b683a44688f7b28f1f27e8e37c36
Author: remm <re...@apache.org>
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 04eef9956d..274712b8d8 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -743,7 +743,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 3e6629dd33..40608b8029 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -223,6 +223,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org