Author: gonzalo
Date: 2006-07-03 21:44:07 -0400 (Mon, 03 Jul 2006)
New Revision: 62238

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/CookieContainer.cs
Log:
2006-07-03 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * CookieContainer.cs: don't send a secure cookie over an insecure
        channel.



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2006-07-03 23:35:10 UTC (rev 
62237)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2006-07-04 01:44:07 UTC (rev 
62238)
@@ -1,3 +1,8 @@
+2006-07-03 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * CookieContainer.cs: don't send a secure cookie over an insecure
+       channel.
+
 2006-06-02 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address

Modified: trunk/mcs/class/System/System.Net/CookieContainer.cs
===================================================================
--- trunk/mcs/class/System/System.Net/CookieContainer.cs        2006-07-03 
23:35:10 UTC (rev 62237)
+++ trunk/mcs/class/System/System.Net/CookieContainer.cs        2006-07-04 
01:44:07 UTC (rev 62238)
@@ -273,6 +273,9 @@
                                        }
                                }
 
+                               if (uri.Scheme == "https" && !cookie.Secure)
+                                       continue;
+
                                coll.Add (cookie);
                        }
                        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to