From marijnh at gmail.com Tue Aug 1 10:42:18 2006 From: marijnh at gmail.com (Marijn Haverbeke) Date: Tue, 1 Aug 2006 12:42:18 +0200 Subject: [rfc2109-devel] parse-cookies chokes on short strings Message-ID: While messing around with an UCW project I ended up setting the cookie 'foo' to the value 'bar'. With firefox all is well, but IE (probably violating some standard again) sends me a cookie header that simply says 'foo=bar'. The function parse-cookies in rfc2109 takes the first 9 characters from a string and compares those with "$Version=", but for strings shorter than 9 characters this will raise an error. Attached is a patch which adds a check to see whether the string is long enough. Marijn Haverbeke -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: short-cookie-fix Type: application/octet-stream Size: 1995 bytes Desc: not available URL: