Browse Source

2008-05-28 Gonzalo Paniagua Javier <[email protected]>

	* CookieContainer.cs: apply slightly modified patch from [email protected]
	that fixes bug #356537.


svn path=/trunk/mcs/; revision=104338
Gonzalo Paniagua Javier 17 years ago
parent
commit
1c19d120ad

+ 5 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,8 @@
+2008-05-28 Gonzalo Paniagua Javier <[email protected]>
+
+	* CookieContainer.cs: apply slightly modified patch from [email protected]
+	that fixes bug #356537.
+
 2008-04-30  Miguel de Icaza  <[email protected]>
 
 	* WebPermission.cs (ToXml): To allow code that uses WebPermission

+ 3 - 0
mcs/class/System/System.Net/CookieContainer.cs

@@ -258,6 +258,9 @@ namespace System.Net
 			if (dot == -1)
 				return (String.Compare (host, domain, true, CultureInfo.InvariantCulture) == 0);
 
+			if (dot == 0 && String.Compare ("." + host, domain, true, CultureInfo.InvariantCulture) == 0)
+			    return true;
+	
 			if (host.Length < domain.Length)
 				return false;