You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Maurizio Marini <ma...@datalogica.com> on 2002/10/29 23:37:46 UTC
Proxy Pass Cookie bug
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For who interested:
if ((datestr = ap_table_get(resp_hdrs, "Set-Cookie")) != NULL)
ap_table_set(resp_hdrs, "Set-Cookie", proxy_cookie_reverse_map(r, datestr));
it cannot use a string var here; in fact cookies are zero delimited; if the
backend send more than 1 cookie, datestr contains only the first of them
- --
Maurizio Marini
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9vw264Q/49nIJTlwRAmnvAJ9z7tfZSvcapjgJsqwDPzHjnFi9ugCcD1L2
dKUWSzJ3NjgU8WsnLGh9+9M=
=PWx5
-----END PGP SIGNATURE-----
Re: Proxy Pass Cookie bug
Posted by Graham Leggett <mi...@sharp.fm>.
Maurizio Marini wrote:
> if ((datestr = ap_table_get(resp_hdrs, "Set-Cookie")) != NULL)
> ap_table_set(resp_hdrs, "Set-Cookie", proxy_cookie_reverse_map(r, datestr));
>
> it cannot use a string var here; in fact cookies are zero delimited; if the
> backend send more than 1 cookie, datestr contains only the first of them
Cookies are definitely not zero delimited - your backend is definitely
broken if it is trying to send them that way.
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."