X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.Configuration_2.0%2FAuthorizationSection.cs;h=521620a3994def766f087a08d1f9fe19e0e3d073;hb=8ce5afd3d321ed756d2b245639f8a996095bf7b8;hp=a2e872c02438128152065590b4fb1f887e22d24d;hpb=53e266903ec6b2d822cf5b0c566f6374df5307a4;p=mono.git diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationSection.cs b/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationSection.cs index a2e872c0243..521620a3994 100644 --- a/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationSection.cs +++ b/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationSection.cs @@ -43,7 +43,7 @@ namespace System.Web.Configuration { static AuthorizationSection () { - rulesProp = new ConfigurationProperty ("", typeof (AuthorizationRuleCollection), null, + rulesProp = new ConfigurationProperty (String.Empty, typeof (AuthorizationRuleCollection), null, null, PropertyHelper.DefaultValidator, ConfigurationPropertyOptions.IsDefaultCollection); properties = new ConfigurationPropertyCollection (); @@ -68,8 +68,7 @@ namespace System.Web.Configuration { internal bool IsValidUser (IPrincipal user, string verb) { - string username = (user == null) ? "" : user.Identity.Name; - + string username = (user == null) ? String.Empty : user.Identity.Name; foreach (AuthorizationRule rule in Rules) { if (rule.Verbs.Count != 0 && !rule.CheckVerb (verb)) continue;