2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Sun, 25 Apr 2004 11:40:16 +0000 (11:40 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Sun, 25 Apr 2004 11:40:16 +0000 (11:40 -0000)
* WindowsPrincipal.cs: Call invariant ToUpper

svn path=/trunk/mcs/; revision=25949

mcs/class/corlib/System.Security.Principal/ChangeLog
mcs/class/corlib/System.Security.Principal/WindowsPrincipal.cs

index e9b146d052d8989e68aaafe1f6839cbb83bce71c..25db53732e354f64cbe94e5799e34292fd14b794 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * WindowsPrincipal.cs: Call invariant ToUpper
+
 2004-04-14  Sebastien Pouliot  <sebastien@ximian.com>
 
        * WindowsIdentity.cs: Implemented IDeserializationCallback and 
index c85cd92cfd269dd546b3e97283ed36d344695fde..48db711846e68e5231d98f2851cdc0360ebb8d3f 100755 (executable)
@@ -99,7 +99,7 @@ namespace System.Security.Principal {
                                        m_roles = WindowsIdentity._GetRoles (Token);
                                }
 #if !NET_1_0
-                               role = role.ToUpper ();
+                               role = role.ToUpperInvariant ();
 #endif
                                foreach (string check in m_roles) {
 #if NET_1_0
@@ -107,7 +107,7 @@ namespace System.Security.Principal {
                                                return true;
 #else
                                        Console.WriteLine ("> {0}", check);
-                                       if ((check != null) && (role == check.ToUpper ()))
+                                       if ((check != null) && (role == check.ToUpperInvariant ()))
                                                return true;
 #endif
                                }