Wap cookies patch

Martin Conte Mac Donell reflejo at gmail.com
Wed Feb 4 01:51:40 CET 2009


On Tue, Feb 3, 2009 at 10:23 PM, Nikos Balkanas <nbalkanas at gmail.com> wrote:
> Hi,
>
> The following is a simple patch to align cookies with RFC 2068 (HTTP 1.1) &
> 2109 (cookie). It decreases memory requirements, processing time, and
> handles correctly cookies that have '=' in their values.
>
> From RFC 2068:
>
> token          = 1*<any CHAR except CTLs or tspecials>
>
>           tspecials      = "(" | ")" | "<" | ">" | "@"
>                          | "," | ";" | ":" | "\" | <">
>                          | "/" | "[" | "]" | "?" | "="
>                          | "{" | "}" | SP | HT
>
> From RFC 2109:
>
> av-pairs        =       av-pair *(";" av-pair)
> av-pair         =       attr ["=" value]        ; optional value
> attr            =       token
> value           =       word
> word            =       token | quoted-string
>
> Therefore in a NAME = VALUE pair in a cookie, NAME cannot contain any of
> those fancy characters.

Seems good. +1

M



More information about the devel mailing list