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