I think those are two different issues we are taking about.<br>In your case, yes, most likely bar=baz makes a new cookie (according to the RFC).<br>In my case "session=6,Direct,placeholder,<a href="http://test.com/" target="_blank">test.com</a>;" is an obvious attribute-value pair followed by a ";". (as per RFC: "av-pairs = av-pair *(";" av-pair)" )<br>
What I am trying to say that drakma shouldn't stumble upon the comma after "6", since the next construct is not "name=value", but only a token.<br>I agree, that they break a rule set by the RFC 2068, which defines a token as <br>
token = 1*<any CHAR except CTLs or tspecials> <br>where <br> tspecials = "(" | ")" | "<" | ">" | "@"<br> | "," | ";" | ":" | "\" | <"><br>
| "/" | "[" | "]" | "?" | "="<br> | "{" | "}" | SP | HT<br><br>So, having a comma in a token "6,Direct,placeholder,<a href="http://test.com/" target="_blank">test.com</a>" is against the rule but in this case it's still easily identifiable as value for the "session=6,Direct,placeholder,<a href="http://test.com/" target="_blank">test.com</a>;" av-pair so it needs to be fixed or some api provided so this issue could be overcome.<br>
<br>Thank you,<br>Andrei<br><br><br><div class="gmail_quote">On Wed, Sep 30, 2009 at 5:58 PM, Edi Weitz <span dir="ltr"><<a href="mailto:edi@agharta.de">edi@agharta.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Sep 30, 2009 at 5:35 PM, Andrei Stebakov <<a href="mailto:lispercat@gmail.com">lispercat@gmail.com</a>> wrote:<br>
> Looks like according to RFC 2109, "=" takes priority over "," so probably<br>
> when we encounter something like session=foo,bar=baz, the parser should<br>
> analyze sequences on both sides of an "=" character, so in this case comma<br>
> becomes a separator of two different pairs.<br>
<br>
</div>Ah, that's something I've been missing so far. Can you point to where<br>
exactly this can be found in the RFC? That should make the cookie<br>
parsing code clearer and I should be able to get rid of the comma<br>
workaround which is already in there.<br>
<br>
Thanks,<br>
<font color="#888888">Edi.<br>
</font></blockquote></div><br>