Author: gonzalo
Date: 2006-11-13 17:56:42 -0500 (Mon, 13 Nov 2006)
New Revision: 67802

Modified:
   trunk/mcs/class/System.Web/System.Web/CapabilitiesLoader.cs
   trunk/mcs/class/System.Web/System.Web/ChangeLog
Log:
2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * CapabilitiesLoader.cs: made the hasstable that contains the properties
        for the brower case insensitive. Fixes bug #79795.



Modified: trunk/mcs/class/System.Web/System.Web/CapabilitiesLoader.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/CapabilitiesLoader.cs 2006-11-13 
22:54:41 UTC (rev 67801)
+++ trunk/mcs/class/System.Web/System.Web/CapabilitiesLoader.cs 2006-11-13 
22:56:42 UTC (rev 67802)
@@ -166,8 +166,17 @@
                                return defaultCaps;
 
                        foreach (BrowserData bd in alldata) {
-                               if (bd.IsMatch (userAgent))
-                                       return bd.GetProperties (new Hashtable 
());
+                               if (bd.IsMatch (userAgent)) {
+                                       Hashtable tbl;
+#if NET_2_0
+                                       tbl = new Hashtable 
(StringComparer.InvariantCultureIgnoreCase);
+#else
+                                       tbl = new Hashtable 
(CaseInsensitiveHashCodeProvider.DefaultInvariant,
+                                                               
CaseInsensitiveComparer.DefaultInvariant);
+#endif
+
+                                       return bd.GetProperties (tbl);
+                               }
                        }
                        
                        return defaultCaps;

Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog     2006-11-13 22:54:41 UTC 
(rev 67801)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog     2006-11-13 22:56:42 UTC 
(rev 67802)
@@ -1,5 +1,10 @@
 2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * CapabilitiesLoader.cs: made the hasstable that contains the properties
+       for the brower case insensitive. Fixes bug #79795.
+
+2006-11-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * HttpResponse.cs: fix typo that prevented Server.Execute from restoring
        the initial output stream used. Closes bug #79916.
 

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

Reply via email to