[Python-bugs-list] [ python-Bugs-472646 ] Cookie.py and : in key

noreply@sourceforge.net noreply@sourceforge.net
Thu, 18 Oct 2001 21:18:27 -0700


Bugs item #472646, was opened at 2001-10-18 21:18
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=472646&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Barry Warsaw (bwarsaw)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Cookie.py and : in key

Initial Comment:
An older version of Cookie.py that I used in Mailman
allowed : (colon) in the keys.  The version that's in
Python right now does not.  The question comes down to
whether Cookie.py should be a strict interpretation of
RFCs 2109 and 2068 (which appears to mandate such keys
be enclosed in quotes) or a looser interpretation.  

On the one hand, it shouldn't allow you to break the
standards, but OTOH most browsers allow this, and
besides, it's entirely possible that you'll get
ill-conformant cookie data.  Be liberal in what you
accept and strict in what you generate.

Here's the thread in python-dev:

http://mail.python.org/pipermail/python-dev/2001-October/017722.html

Mostly I'm submitting this bug so it doesn't get buried
in my inbox.  Posted patch is attached.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=472646&group_id=5470