This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 30fafc2b0cbf3b2e7924f3966540af1361b3fd4e 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 7bd9a89..485b2f4 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 javax.servlet.DispatcherType; import javax.servlet.ServletException; @@ -211,11 +212,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