[Zope3-dev] quoting cookies

Steve Alexander steve@cat-box.net
Thu, 20 Feb 2003 15:15:01 +0200


Steve Alexander wrote:
> zope/publisher/http.py, line 823.
> 
> Cookie values and comments are not quoted at all by the HTTP response
> 
> Some applications will want to take care of quoting values in cookies, 
> but most applications will want to be able to set cookies and get 
> cookies, and have sensible quoting take place automatically.
> 
> Any thoughts?

One thought is to make setCookie quote the value by default, unless a 
do_not_quote=True (or perhaps raw=True) argument is passed in.

I think people don't care about the exact representation of cookies most 
of the time.

--
Steve Alexander