Author: remy.maucherat(a)jboss.com
Date: 2008-03-13 08:01:22 -0400 (Thu, 13 Mar 2008)
New Revision: 498
Modified:
trunk/java/org/apache/tomcat/util/http/ServerCookie.java
Log:
- Avoid quoting the path for v0 cookies.
Modified: trunk/java/org/apache/tomcat/util/http/ServerCookie.java
===================================================================
--- trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2008-03-12 22:48:54 UTC (rev
497)
+++ trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2008-03-13 12:01:22 UTC (rev
498)
@@ -295,7 +295,12 @@
// Path=path
if (path!=null) {
buf.append ("; Path=");
- maybeQuote2(version, buf, path);
+ if (version > 0) {
+ // Don't quote the path for v0 cookies
+ maybeQuote2(version, buf, path);
+ } else {
+ buf.append(path);
+ }
}
// Secure
Show replies by date