[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-10-22 Thread Kyle Graehl

Kyle Graehl added the comment:

r"(\s+|;|$|,)"   # Ending either at space, semicolon, or EOS. ( or comma...)

I remember running into this same problem like 5 years ago.

I added a comma as a valid regexp for ending the pattern, and removed it as a 
valid _LegalKeyChars

I also think adding the "Priority" reserved key might make sense (or at least 
have options for handling it)

--
nosy: +Kyle Graehl

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-17 Thread Demian Brecht

Changes by Demian Brecht demianbre...@gmail.com:


--
nosy: +demian.brecht

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23930
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-13 Thread Piotr

New submission from Piotr:

Skype WISPr and iPassConnect (and maybe other bots) return cookies as a comma 
separated list. It's not a comma + space (which works).

C = cookies.SimpleCookie()
C.load('a=b,z=zz')
 C['a']
Morsel: a='b,z=zz'

I wonder what would those bots do if there was a comma in a cookie value.

--
components: Library (Lib)
messages: 240603
nosy: riklaunim
priority: normal
severity: normal
status: open
title: SimpleCookie doesn't  parse comma-only separated cookies correctly
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23930
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com