Author: kostat
Date: 2007-05-16 04:45:04 -0400 (Wed, 16 May 2007)
New Revision: 77461
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
Log:
TARGET_JVM: make handler resolution case insensitive to comply with r77418
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
2007-05-16 08:29:36 UTC (rev 77460)
+++
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs
2007-05-16 08:45:04 UTC (rev 77461)
@@ -61,7 +61,7 @@
validateProp = new ConfigurationProperty ("validate",
typeof (bool), true);
verbProp = new ConfigurationProperty ("verb", typeof
(string), null,
TypeDescriptor.GetConverter (typeof (string)),
-
PropertyHelper.NonEmptyStringValidator,
+
PropertyHelper.NonEmptyStringValidator,
ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
_properties = new ConfigurationPropertyCollection ();
@@ -202,11 +202,18 @@
j--;
FileMatchingInfo fm = Paths [j];
+ bool ignoreCase =
+#if TARGET_J2EE
+ true;
+#else
+ false;
+#endif
+
if (fm.MatchExact != null)
- return fm.MatchExact.Length == p.Length
&& StrUtils.EndsWith (p, fm.MatchExact);
+ return fm.MatchExact.Length == p.Length
&& StrUtils.EndsWith (p, fm.MatchExact, ignoreCase);
if (fm.EndsWith != null)
- return StrUtils.EndsWith (p,
fm.EndsWith);
+ return StrUtils.EndsWith (p,
fm.EndsWith, ignoreCase);
if (fm.MatchExpr == "*")
return true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches