[Mono-bugs] [Bug 356537] New: CookieContainer.GetCookies() mishandles the case of domain-only server
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Jan 26 18:38:36 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=356537
Summary: CookieContainer.GetCookies() mishandles the case of
domain-only server
Product: Mono: Class Libraries
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rulatir at wp.pl
QAContact: mono-bugs at lists.ximian.com
Found By: ---
CookieContainer mishandles the special case when a site uses a domain-only
server name. Cookies for domain .foo.bar will not be found by GetCookies(new
Uri("http://foo.bar")). Such host is rejected by CookieContainer.CheckDomain():
if (host.Length < domain.Length)
return false;
Suggest prepending this special case check:
if (String.Compare(domain,"."+host,true,CultureInfo.InvariantCulture) == 0)
return true;
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list