tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: [PATCH] Cookie, Cookie2 Header fix for mod_jk
Date Wed, 07 Dec 2005 19:35:10 GMT
Bill Barker wrote:
>  
> 
> I agree that the patch is simply masking the real problem.  With the current
> mod_jk code what Tomcat sees is:
>   Cookie: myCookie=1234
>   Cookie: $Version=1


Huh, looking at the source I see the problem.
we are using:

'if (memcmp(p, "OOKIE", 5)'
so both cookie and cookie2 are passed as cookie.
That's bad.
we should check for:
'if (memcmp(p, "OOKIE\0", 6)'


Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message