You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/05/12 12:31:04 UTC
svn commit: r943435 - /tomcat/trunk/java/javax/servlet/http/Cookie.java
Author: markt
Date: Wed May 12 10:31:04 2010
New Revision: 943435
URL: http://svn.apache.org/viewvc?rev=943435&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49221
Ensure case conversion behaves as expected
Patch provided by sebb
Modified:
tomcat/trunk/java/javax/servlet/http/Cookie.java
Modified: tomcat/trunk/java/javax/servlet/http/Cookie.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/Cookie.java?rev=943435&r1=943434&r2=943435&view=diff
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/Cookie.java (original)
+++ tomcat/trunk/java/javax/servlet/http/Cookie.java Wed May 12 10:31:04 2010
@@ -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
*/
public void setDomain(String pattern) {
- domain = pattern.toLowerCase(); // IE allegedly needs this
+ domain = pattern.toLowerCase(Locale.ENGLISH); // IE allegedly needs this
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org