Added proposed fix for version number fix
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 7 Nov 2007 22:01:25 +0000 (22:01 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 7 Nov 2007 22:01:25 +0000 (22:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@592920 13f79535-47bb-0310-9956-ffa450edef68

STATUS

diff --git a/STATUS b/STATUS
index 0418704..52dfc5e 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -46,4 +46,21 @@ PATCHES PROPOSED TO BACKPORT:
   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