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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs