don't quote the path for v0 cookies, some browsers understand quote for the value...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 7 Mar 2008 03:41:42 +0000 (03:41 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 7 Mar 2008 03:41:42 +0000 (03:41 +0000)
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

index 59dc717..7919cd7 100644 (file)
@@ -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