Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 34182 invoked from network); 12 Feb 2008 08:57:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 08:57:16 -0000 Received: (qmail 41074 invoked by uid 500); 12 Feb 2008 08:57:08 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 40723 invoked by uid 500); 12 Feb 2008 08:57:07 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 40708 invoked by uid 99); 12 Feb 2008 08:57:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 00:57:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 08:56:22 +0000 Received: (qmail 3276 invoked from network); 12 Feb 2008 02:47:57 -0600 Received: from unknown (HELO ?192.168.1.184?) (89.21.226.162) by halosg.com with SMTP; 12 Feb 2008 02:47:57 -0600 Message-ID: <47B15F5A.1090902@hanik.com> Date: Tue, 12 Feb 2008 08:56:58 +0000 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Cookies are broken in 6.0.16? References: <5245102a0802082243u1c75eb0fl77dee2f5e5d45ad7@mail.gmail.com> <47ADA4AC.2080302@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Sven K�hler wrote: >> The difficulty here is that although '=' is the delimiter between NAME and >> VALUE there is no need to encode it if it appears in the name or the value. >> This causes some ambiguities when parsing a header of the form: >> Set-Cookie: foo=bar=bartoo >> >> Is the name 'foo' or 'foo=bar'? Is the value 'bar=bartoo' or 'bartoo'? >> >> The changes to the cookie parsing mean the second '=' and any text beyond >> it are now ignored. >> > > !??? > > By instinct, i would have chosen the first = to split the string into > NAME and VALUE. > > Why have you chosen the second = or maybe eben the last = occuring in > the cookie-string? > > Actually, the spec doesn't disagree with chosing any of the = ... > But some users have supplied some reasonable arguments (base64 is > padding with =, etc.) to rather chose the first = over the other ones. > in that case, the user should use v1 cookies :) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org