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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 19 Oct 2001 10:32:55 -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: Accepted
Priority: 5
Submitted By: Barry Warsaw (bwarsaw)
>Assigned to: Barry Warsaw (bwarsaw)
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.

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-10-19 10:32

Message:
Logged In: YES 
user_id=3066

This looks good to me.  Please check it in and close the bug.

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

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