[drakma-devel] drakma:get-cookies fails to parse cookies with commas in values

Edi Weitz edi at agharta.de
Wed Sep 30 21:58:32 UTC 2009


On Wed, Sep 30, 2009 at 5:35 PM, Andrei Stebakov <lispercat at gmail.com> wrote:
> Looks like according to RFC 2109, "=" takes priority over "," so probably
> when we encounter something like session=foo,bar=baz, the parser should
> analyze sequences on both sides of an "=" character, so in this case comma
> becomes a separator of two different pairs.

Ah, that's something I've been missing so far.  Can you point to where
exactly this can be found in the RFC?  That should make the cookie
parsing code clearer and I should be able to get rid of the comma
workaround which is already in there.

Thanks,
Edi.




More information about the Drakma-devel mailing list