Author: gonzalo
Date: 2005-06-26 21:17:54 -0400 (Sun, 26 Jun 2005)
New Revision: 46530

Modified:
   trunk/mcs/class/System.Web/System.Web/ChangeLog
   trunk/mcs/class/System.Web/System.Web/HttpUtility.cs
Log:
2005-06-26 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * HttpUtility.cs: fix another stupid buglet in htmldecode.



Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2005-06-26 23:20:10 UTC 
(rev 46529)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2005-06-27 01:17:54 UTC 
(rev 46530)
@@ -1,5 +1,9 @@
 2005-06-26 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * HttpUtility.cs: fix another stupid buglet in htmldecode.
+
+2005-06-26 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * HttpContext.cs:
        * HttpResponse.cs:
        * HttpRequest.cs: use StrUtils (invariant culture).

Modified: trunk/mcs/class/System.Web/System.Web/HttpUtility.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpUtility.cs        2005-06-26 
23:20:10 UTC (rev 46529)
+++ trunk/mcs/class/System.Web/System.Web/HttpUtility.cs        2005-06-27 
01:17:54 UTC (rev 46530)
@@ -747,7 +747,12 @@
                                }
 
                                if (c == '&') {
-                                       state = 0;
+                                       state = 1;
+                                       if (have_trailing_digits) {
+                                               entity.Append (number.ToString 
(CultureInfo.InvariantCulture));
+                                               have_trailing_digits = false;
+                                       }
+
                                        output.Append (entity.ToString ());
                                        entity.Length = 0;
                                        entity.Append ('&');

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

Reply via email to