httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Winstead <j...@trainedmonkey.com>
Subject Re: Blank cookies
Date Fri, 05 Jan 2001 00:06:12 GMT
seems reasonable enough to me. committed.

thanks.

jim

On Dec 28, David N. Welton wrote:
> 
> If I set a cookie like:
> 
> Cookie "bop; foo=bar;doo=wah; shoo=be ;doooo=bee;dot=dow"
> 
> The current code doesn't handle it.  I know it may be incorrect
> but... what's the saying... be liberal with what you accept and
> conservative with what you output (bad paraphrasing).
> 
> Comments?
> 
> --- download/httpd-apreq/c/apache_cookie.c      Sat Dec 23 02:24:20 2000
> +++ workshop/mod_dtcl/apache_cookie.c   Thu Dec 28 18:09:50 2000
> @@ -169,6 +169,11 @@
>         else {
>             c->values = ap_make_array(r->pool, 4, sizeof(char *));
>         }
> +       
> +       if (!*pair) {
> +           ApacheCookieAdd(c, "");
> +       }
> +
>         while (*pair && (val = ap_getword(r->pool, &pair, '&'))) {
>             ap_unescape_url((char *)val);
>             ApacheCookieAdd(c, val);

Mime
View raw message