This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 7bbc64ea394a4180f199a0e14158951065fc9e50 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Dec 2 20:29:19 2019 +0000 Force Locale for to[Upper|Lower]Case() --- java/org/apache/catalina/authenticator/AuthenticatorBase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/org/apache/catalina/authenticator/AuthenticatorBase.java b/java/org/apache/catalina/authenticator/AuthenticatorBase.java index ee713d5..e438738 100644 --- a/java/org/apache/catalina/authenticator/AuthenticatorBase.java +++ b/java/org/apache/catalina/authenticator/AuthenticatorBase.java @@ -19,6 +19,7 @@ package org.apache.catalina.authenticator; import java.io.IOException; import java.security.Principal; import java.security.cert.X509Certificate; +import java.util.Locale; import java.util.Map; import java.util.Set; @@ -253,11 +254,11 @@ public abstract class AuthenticatorBase extends ValveBase // ------------------------------------------------------------- Properties public String getAllowCorsPreflight() { - return allowCorsPreflight.name().toLowerCase(); + return allowCorsPreflight.name().toLowerCase(Locale.ENGLISH); } public void setAllowCorsPreflight(String allowCorsPreflight) { - this.allowCorsPreflight = AllowCorsPreflight.valueOf(allowCorsPreflight.trim().toUpperCase()); + this.allowCorsPreflight = AllowCorsPreflight.valueOf(allowCorsPreflight.trim().toUpperCase(Locale.ENGLISH)); } public boolean getAlwaysUseSession() { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org