From 00d67cfa8e2d845306e5a4b10e05d60dfc82778a Mon Sep 17 00:00:00 2001 From: fhanik Date: Wed, 7 Nov 2007 22:01:25 +0000 Subject: [PATCH] Added proposed fix for version number fix git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@592920 13f79535-47bb-0310-9956-ffa450edef68 --- STATUS | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/STATUS b/STATUS index 04187048b..52dfc5ee7 100644 --- 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 -- 2.11.0