Author: fhanik
Date: Thu Mar 6 19:41:42 2008
New Revision: 634513
URL: http://svn.apache.org/viewvc?rev=634513&view=rev
Log:
don't quote the path for v0 cookies, some browsers understand quote for the
value, but not the path
Modified:
tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java?rev=634513&r1=634512&r2=634513&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/ServerCookie.java Thu Mar 6
19:41:42 2008
@@ -299,7 +299,10 @@
// 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]