Return-Path: Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 72543 invoked from network); 28 Dec 2000 17:16:00 -0000 Received: from unknown (HELO prosa.it) (213.255.48.130) by h29.sny.collab.net with SMTP; 28 Dec 2000 17:16:00 -0000 Received: by prosa.it (Postfix, from userid 1000) id 186CF9B07C; Thu, 28 Dec 2000 18:15:22 +0100 (CET) Sender: davidw@eugene.prosa.it To: apreq-dev@httpd.apache.org Subject: Blank cookies From: davidw@prosa.it (David N. Welton) Date: 28 Dec 2000 18:15:22 +0100 In-Reply-To: Jim Winstead's message of "Fri, 22 Dec 2000 19:41:31 -0800" Message-ID: <87g0j8pivp.fsf@eugene.prosa.it> Lines: 31 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h29.sny.collab.net 1.6.2 0/1000/N 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); -- David N. Welton Personal: http://www.efn.org/~davidw/ Free Software: http://people.debian.org/~davidw/ Apache Tcl: http://tcl.apache.org