From 9479d4052e4c07fc7a1c3b3d3a25a48cb4299705 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 12 May 2010 10:31:04 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49221 Ensure case conversion behaves as expected Patch provided by sebb git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@943435 13f79535-47bb-0310-9956-ffa450edef68 --- java/javax/servlet/http/Cookie.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/javax/servlet/http/Cookie.java b/java/javax/servlet/http/Cookie.java index 3e3afd67e..dc86f309e 100644 --- a/java/javax/servlet/http/Cookie.java +++ b/java/javax/servlet/http/Cookie.java @@ -18,6 +18,7 @@ package javax.servlet.http; import java.io.Serializable; import java.text.MessageFormat; +import java.util.Locale; import java.util.ResourceBundle; /** @@ -212,7 +213,7 @@ public class Cookie implements Cloneable, Serializable { */ public void setDomain(String pattern) { - domain = pattern.toLowerCase(); // IE allegedly needs this + domain = pattern.toLowerCase(Locale.ENGLISH); // IE allegedly needs this } -- 2.11.0