[tomcat] 02/03: Force Locale for to[Upper|Lower]Case()
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 AuthorDate: Mon Dec 2 20:29:19 2019 + 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
[tomcat] 02/03: Force Locale for to[Upper|Lower]Case()
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 AuthorDate: Mon Dec 2 20:29:19 2019 + 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
[tomcat] 02/03: Force Locale for to[Upper|Lower]Case()
This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git commit 4acf1daa741e56e2e509345cc4f331b244f0c7f7 Author: Mark Thomas AuthorDate: Mon Dec 2 20:29:19 2019 + 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 308b019..610f15b 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.Optional; import java.util.Set; @@ -251,11 +252,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