Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs b/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs
index 05fc123d803..6f30bc2174f 100644
--- a/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs
+++ b/mcs/class/System.Web/System.Web.Configuration_2.0/AuthorizationRule.cs
@@ -223,7 +223,7 @@ namespace System.Web.Configuration {
internal bool CheckVerb (string verb)
{
foreach (string v in Verbs) {
- if (String.Compare (v, verb, true) == 0)
+ if (verb == v)
return true;
}
return false;
@@ -232,9 +232,7 @@ namespace System.Web.Configuration {
internal bool CheckUser (string user)
{
foreach (string u in Users) {
- if (String.Compare (u, user, true) == 0 ||
- u == "*" ||
- (u == "?" && user == ""))
+ if (u == user)
return true;
}
return false;