tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r557470 - /tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java
Date Thu, 19 Jul 2007 02:53:08 GMT
Author: markt
Date: Wed Jul 18 19:53:07 2007
New Revision: 557470

URL: http://svn.apache.org/viewvc?view=rev&rev=557470
Log:
Don't treat the single quote character as special.

Modified:
    tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java

Modified: tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java
URL: http://svn.apache.org/viewvc/tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java?view=diff&rev=557470&r1=557469&r2=557470
==============================================================================
--- tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java
(original)
+++ tomcat/connectors/branches/tc5.0.x/util/java/org/apache/tomcat/util/http/Cookies.java
Wed Jul 18 19:53:07 2007
@@ -243,7 +243,7 @@
             
             // quote is valid only in version=1 cookies
             cc=bytes[pos];
-            if( ( version == 1 || isSpecial ) && ( cc== '\'' || cc=='"' ) ) {
+            if( ( version == 1 || isSpecial ) && ( cc=='"' ) ) {
                 startValue++;
                 endValue=indexOf( bytes, startValue, end, cc );
                 pos=endValue+1; // to skip to next cookie



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message