Author: fhanik
Date: Wed Nov  7 14:01:25 2007
New Revision: 592920

URL: http://svn.apache.org/viewvc?rev=592920&view=rev
Log:
Added proposed fix for version number fix

Modified:
    tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=592920&r1=592919&r2=592920&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Wed Nov  7 14:01:25 2007
@@ -46,4 +46,21 @@
   http://people.apache.org/~markt/patches/2007-10-30-Bug43675.patch
   +1: markt
   -1:
-  
\ No newline at end of file
+
+* Fix cookie $Version parsing
+  Index: java/org/apache/tomcat/util/http/Cookies.java
+  ===================================================================
+  --- java/org/apache/tomcat/util/http/Cookies.java    (revision 589807)
+  +++ java/org/apache/tomcat/util/http/Cookies.java    (working copy)
+  @@ -487,7 +487,7 @@
+                   if (equals( "Version", bytes, nameStart, nameEnd) && 
+                       sc == null) {
+                       // Set version
+  -                    if( bytes[valueStart] =='1' && valueEnd == valueStart) {
+  +                    if( bytes[valueStart] =='1' && valueEnd == 
(valueStart+1)) {
+                           version=1;
+                       } else {
+                           // unknown version (Versioning is not very strict)
+  
+ +1: fhanik
+ -1: 
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to