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.

Author paulie4
Recipients paulie4
Date 2011-09-12.19:14:39
SpamBayes Score 0.0004026725
Marked as misclassified No
Message-id <1315854880.61.0.95908383563.issue12966@psf.upfronthosting.co.za>
In-reply-to
Content
Even though RFC 6265's cookie-value's cookie-octet definition says that whitespace characters are not allowed (see http://tools.ietf.org/html/rfc6265), there are non-compliant web sites that send cookie values with newlines.  cookielib.LWPCookieJar will save the bad value in a cookie file, but when it tries to load it, it probably is only splitting by newlines, so it crashes on the invalid line.  The easiest thing would probably be to just ignore cookies that have values with a newline.  (Note: I'm using Python 2.5, so this might have been fixed in a later version.)
History
Date User Action Args
2011-09-12 19:14:40paulie4setrecipients: + paulie4
2011-09-12 19:14:40paulie4setmessageid: <1315854880.61.0.95908383563.issue12966@psf.upfronthosting.co.za>
2011-09-12 19:14:40paulie4linkissue12966 messages
2011-09-12 19:14:39paulie4create