[Mono-dev] [PATCH] Bug 356537 - old bug in CookieContainer

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Wed May 28 18:17:47 EDT 2008


On Fri, 2008-05-23 at 15:40 -0700, Rulatir wrote:
> Could someone pay attention (i.e. apply my patch) to bug 356537?
> CookieContainer mishandles the case when the server is the same as the
> domain, e.g. the website http://nasza-klasa.pl sets a cookie for the domain
> nasza-klasa.pl, resulting in a dot-prefixed ".nasza-klasa.pl" domain string
> in the cookie. The host.Length < domain.Length condition in CheckDomain()
> then holds, causing the cookie to be culled. The patch adds an explicit
> check for the case when the host string is the same as the domain string
> without leading dot.
> 
> http://www.nabble.com/file/p17442176/CookieContainer.patch
> CookieContainer.patch 

Patch applied.

-Gonzalo




More information about the Mono-devel-list mailing list