Issue 472646: Cookie.py and : in key (original) (raw)
Issue472646
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/35354
classification
Title: | Cookie.py and : in key | |
---|---|---|
Type: | Stage: | |
Components: | Library (Lib) | Versions: |
process
Status: | closed | Resolution: | rejected |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | barry | Nosy List: | barry, fdrake |
Priority: | normal | Keywords: |
Created on 2001-10-19 04:18 by barry, last changed 2022-04-10 16:04 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
Cookie.py-patch | barry,2001-10-19 04:18 |
Messages (3) | ||
---|---|---|
msg7046 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2001-10-19 04:18 |
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. | ||
msg7047 - (view) | Author: Fred Drake (fdrake) ![]() |
Date: 2001-10-19 17:32 |
Logged In: YES user_id=3066 This looks good to me. Please check it in and close the bug. | ||
msg7048 - (view) | Author: Barry A. Warsaw (barry) * ![]() |
Date: 2001-11-13 23:11 |
Logged In: YES user_id=12800 I've decided to reject and close this for Python 2.2. I'm not comfortable with making this change so late in the beta cycle. (I've worked around this in Mailman so it isn't of immediate import to me now.) |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:04:32 | admin | set | github: 35354 |
2001-10-19 04🔞27 | barry | create |