From: markt Date: Wed, 12 May 2010 10:31:04 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49221 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9479d4052e4c07fc7a1c3b3d3a25a48cb4299705;p=tomcat7.0 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 --- 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 }