From 8f044634d9ef7803f76ef1eb55ba6bef301fb7fe Mon Sep 17 00:00:00 2001 From: fhanik Date: Fri, 7 Mar 2008 03:41:42 +0000 Subject: [PATCH] don't quote the path for v0 cookies, some browsers understand quote for the value, but not the path git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@634513 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/http/ServerCookie.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/http/ServerCookie.java b/java/org/apache/tomcat/util/http/ServerCookie.java index 59dc717d6..7919cd7ac 100644 --- a/java/org/apache/tomcat/util/http/ServerCookie.java +++ b/java/org/apache/tomcat/util/http/ServerCookie.java @@ -299,7 +299,10 @@ public class ServerCookie implements Serializable { // Path=path if (path!=null) { buf.append ("; Path="); - maybeQuote2(version, buf, path); + if (version>0) + maybeQuote2(version, buf, path); //don't quote the path for v0 cookies + else + buf.append(path); } // Secure -- 2.11.0