Re: Wap cookies patch

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
looks ok, commited to cvs.

Thanks,
Alex

Nikos Balkanas schrieb:
> 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.
>  
> Please vote and commit.
>  
> Thanx,
> Nikos
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.