Author: mhabersack
Date: 2007-11-02 19:04:51 -0500 (Fri, 02 Nov 2007)
New Revision: 88759

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
Log:
2007-11-03  Marek Habersack  <[EMAIL PROTECTED]>

        * ClientScriptManager.cs: eventValidationArray is serialized in an
        optimized fashion, so that its serialized form occupies only as
        many slots as were actually used. It may result in that an array
        of 0 entries will be serialized and then
        restored. EnsureEventValidationArray takes that into consideration
        now.


Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-11-02 23:58:00 UTC 
(rev 88758)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-11-03 00:04:51 UTC 
(rev 88759)
@@ -1,3 +1,12 @@
+2007-11-03  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * ClientScriptManager.cs: eventValidationArray is serialized in an
+       optimized fashion, so that its serialized form occupies only as
+       many slots as were actually used. It may result in that an array
+       of 0 entries will be serialized and then
+       restored. EnsureEventValidationArray takes that into consideration
+       now.
+
 2007-11-01  Marek Habersack  <[EMAIL PROTECTED]>
 
        * Page.cs, ObjectStateFormatter.cs: use the new

Modified: trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2007-11-02 23:58:00 UTC (rev 88758)
+++ trunk/mcs/class/System.Web/System.Web.UI/ClientScriptManager.cs     
2007-11-03 00:04:51 UTC (rev 88759)
@@ -435,7 +435,7 @@
 
                private void EnsureEventValidationArray ()
                {
-                       if (eventValidationValues == null)
+                       if (eventValidationValues == null || 
eventValidationValues.Length == 0)
                                eventValidationValues = new int [64];
 
                        int len = eventValidationValues.Length;

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

Reply via email to