From: fhanik Date: Fri, 7 Mar 2008 03:41:42 +0000 (+0000) Subject: don't quote the path for v0 cookies, some browsers understand quote for the value... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8f044634d9ef7803f76ef1eb55ba6bef301fb7fe;p=tomcat7.0 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 --- 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