Author: gonzalo
Date: 2005-03-09 16:41:16 -0500 (Wed, 09 Mar 2005)
New Revision: 41617

Modified:
   branches/mono-1-0/mcs/class/System.Web/System.Web/ChangeLog
   branches/mono-1-0/mcs/class/System.Web/System.Web/HttpRequest.cs
Log:
2005-03-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * HttpRequest.cs: correctly store the value cookies in Params. Fixes
        bug #73345.



Modified: branches/mono-1-0/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- branches/mono-1-0/mcs/class/System.Web/System.Web/ChangeLog 2005-03-09 
21:40:53 UTC (rev 41616)
+++ branches/mono-1-0/mcs/class/System.Web/System.Web/ChangeLog 2005-03-09 
21:41:16 UTC (rev 41617)
@@ -1,3 +1,8 @@
+2005-03-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * HttpRequest.cs: correctly store the value cookies in Params. Fixes
+       bug #73345.
+
 2005-02-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * HttpRequest.cs: Path and FilePath also change when RewritePath is

Modified: branches/mono-1-0/mcs/class/System.Web/System.Web/HttpRequest.cs
===================================================================
--- branches/mono-1-0/mcs/class/System.Web/System.Web/HttpRequest.cs    
2005-03-09 21:40:53 UTC (rev 41616)
+++ branches/mono-1-0/mcs/class/System.Web/System.Web/HttpRequest.cs    
2005-03-09 21:41:16 UTC (rev 41617)
@@ -729,9 +729,11 @@
                                        _oParams.Merge(QueryString);
                                        _oParams.Merge(Form);
                                        _oParams.Merge(ServerVariables);
-                                       string [] cookies = Cookies.AllKeys;
-                                       foreach (string k in cookies)
-                                               _oParams.Add (k, Cookies 
[k].ToString ());
+                                       int count = Cookies.Count;
+                                       for (int i = 0; i< count; i++) {
+                                               HttpCookie cookie = Cookies [i];
+                                               _oParams.Add (cookie.Name, 
cookie.Value);
+                                       }
                                        _oParams.MakeReadOnly();
                                }
 

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

Reply via email to