Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-11-01 20:55:00 -0400
committerGreg Wilkins2012-11-01 20:55:00 -0400
commit65202e9abe2c56a05b45140e46c70a94b4119cbb (patch)
tree2941254168c68ed4416df8cf8bfdd9eec5467204 /jetty-security/src/main/java
parentba06103442f221f1a1e680f25a3de1f91b157683 (diff)
downloadorg.eclipse.jetty.project-65202e9abe2c56a05b45140e46c70a94b4119cbb.tar.gz
org.eclipse.jetty.project-65202e9abe2c56a05b45140e46c70a94b4119cbb.tar.xz
org.eclipse.jetty.project-65202e9abe2c56a05b45140e46c70a94b4119cbb.zip
393363 Use Locale.ENGLISH for all toUpperCase and toLowerCase calls
Diffstat (limited to 'jetty-security/src/main/java')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java
index 829a9d595b..26a080dbdb 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java
@@ -21,6 +21,7 @@ package org.eclipse.jetty.security.authentication;
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
+import java.util.Locale;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
@@ -390,7 +391,7 @@ public class FormAuthenticator extends LoginAuthenticator
@Override
public long getDateHeader(String name)
{
- if (name.toLowerCase().startsWith("if-"))
+ if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
return -1;
return super.getDateHeader(name);
}
@@ -398,7 +399,7 @@ public class FormAuthenticator extends LoginAuthenticator
@Override
public String getHeader(String name)
{
- if (name.toLowerCase().startsWith("if-"))
+ if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
return null;
return super.getHeader(name);
}
@@ -412,7 +413,7 @@ public class FormAuthenticator extends LoginAuthenticator
@Override
public Enumeration getHeaders(String name)
{
- if (name.toLowerCase().startsWith("if-"))
+ if (name.toLowerCase(Locale.ENGLISH).startsWith("if-"))
return Collections.enumeration(Collections.EMPTY_LIST);
return super.getHeaders(name);
}

Back to the top