Author: gonzalo
Date: 2005-12-08 13:17:48 -0500 (Thu, 08 Dec 2005)
New Revision: 54118

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/HttpWebResponse.cs
Log:
2005-12-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * HttpWebResponse.cs: don't loop forever when no name or value between
        semicolons. Fixes bug #76943.



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-12-08 18:06:28 UTC (rev 
54117)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-12-08 18:17:48 UTC (rev 
54118)
@@ -1,3 +1,8 @@
+2005-12-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * HttpWebResponse.cs: don't loop forever when no name or value between
+       semicolons. Fixes bug #76943.
+
 2005-12-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * HttpWebResponse.cs: don't fail if the cookie ends with a 'name'

Modified: trunk/mcs/class/System/System.Net/HttpWebResponse.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpWebResponse.cs        2005-12-08 
18:06:28 UTC (rev 54117)
+++ trunk/mcs/class/System/System.Net/HttpWebResponse.cs        2005-12-08 
18:17:48 UTC (rev 54118)
@@ -455,10 +455,11 @@
                        if (pos < header.Length && header [pos] == '=') {
                                pos++;
                                val = GetCookieValue ();
-                               if (pos < length && header [pos] == ';')
-                                       pos++;
                        }
 
+                       if (pos < length && header [pos] == ';')
+                               pos++;
+
                        return true;
                }
 

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

Reply via email to