#2988: add note about catching CookieError when parsing untrusted cookie data.

This commit is contained in:
Georg Brandl 2008-05-29 07:38:37 +00:00
parent 7943a3295d
commit b77e888f41
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ The module formerly strictly applied the parsing rules described in the
MSIE 3.0x doesn't follow the character rules outlined in those specs. As a MSIE 3.0x doesn't follow the character rules outlined in those specs. As a
result, the parsing rules used are a bit less strict. result, the parsing rules used are a bit less strict.
.. note::
On encountering an invalid cookie, :exc:`CookieError` is raised, so if your
cookie data comes from a browser you should always prepare for invalid data
and catch :exc:`CookieError` on parsing.
.. exception:: CookieError .. exception:: CookieError