Browse Source

removed quotes around values

- that was against the RFC 2109
- it broke IE
- if fixes #486


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@966 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 17 years ago
parent
commit
a6d91904fc
  1. 11
      src/mod_usertrack.c

11
src/mod_usertrack.c

@ -216,7 +216,7 @@ URIHANDLER_FUNC(mod_usertrack_uri_handler) {
}
buffer_copy_string(ds->key, "Set-Cookie");
buffer_copy_string_buffer(ds->value, p->conf.cookie_name);
buffer_append_string(ds->value, "=\"");
buffer_append_string(ds->value, "=");
/* taken from mod_auth.c */
@ -235,13 +235,12 @@ URIHANDLER_FUNC(mod_usertrack_uri_handler) {
MD5_Final(h, &Md5Ctx);
buffer_append_string_encoded(ds->value, (char *)h, 16, ENCODING_HEX);
buffer_append_string(ds->value, "\"; Path=\"/\"");
buffer_append_string(ds->value, "; Version=\"1\"");
buffer_append_string(ds->value, "; Path=/");
buffer_append_string(ds->value, "; Version=1");
if (!buffer_is_empty(p->conf.cookie_domain)) {
buffer_append_string(ds->value, "; Domain=\"");
buffer_append_string_buffer(ds->value, p->conf.cookie_domain);
buffer_append_string(ds->value, "\"");
buffer_append_string(ds->value, "; Domain=");
buffer_append_string_encoded(ds->value, CONST_BUF_LEN(p->conf.cookie_domain), ENCODING_REL_URI);
}
if (p->conf.cookie_max_age) {

Loading…
Cancel
Save