+2008-02-28 Marek Habersack <mhabersack@novell.com>
+
+ * HandlerFactoryConfiguration.cs: ignore case when matching
+ handler paths.
+
+ * FileMatchingInfo.cs: regular expression is created with the
+ ignore case option.
+
2007-12-13 Marek Habersack <mhabersack@novell.com>
* FileMatchingInfo.cs. MachineKeyRegistryStorage.cs: speed
expr = expr.Substring (1);
expr += "\\z";
- RegExp = new Regex (expr);
+ RegExp = new Regex (expr, RegexOptions.IgnoreCase);
}
}
}
FileMatchingInfo fm = files [j];
if (fm.MatchExact != null)
- return fm.MatchExact.Length == orig.Length && StrUtils.EndsWith (orig, fm.MatchExact);
+ return fm.MatchExact.Length == orig.Length && StrUtils.EndsWith (orig, fm.MatchExact, true);
if (fm.EndsWith != null)
- return StrUtils.EndsWith (p, fm.EndsWith);
+ return StrUtils.EndsWith (p, fm.EndsWith, true);
if (fm.MatchExpr == "*")
return true;
+2008-02-28 Marek Habersack <mhabersack@novell.com>
+
+ * HttpHandlerAction.cs: ignore case when matching handler
+ paths. Fixes bug #364995
+
2008-02-26 Marek Habersack <mhabersack@novell.com>
* BuildProviderCollection.cs: be case-insensitive when looking for
return cachedMatches [pathToMatch];
bool result = false;
- bool ignoreCase =
-#if TARGET_J2EE
- true;
-#else
- false;
-#endif
string[] handlerPaths = Path.Split (',');
int slash = pathToMatch.LastIndexOf ('/');
string origPathToMatch = pathToMatch;
if (matchExact != null)
{
- result = matchExact.Length == origPathToMatch.Length && StrUtils.EndsWith (origPathToMatch, matchExact, ignoreCase);
+ result = matchExact.Length == origPathToMatch.Length && StrUtils.EndsWith (origPathToMatch, matchExact, true);
if (result == true)
break;
else
}
else if (endsWith != null)
{
- result = StrUtils.EndsWith (pathToMatch, endsWith, ignoreCase);
+ result = StrUtils.EndsWith (pathToMatch, endsWith, true);
if (result == true)
break;
else
expr = expr.Substring (1);
expr += "\\z";
- regEx = new Regex (expr);
+ regEx = new Regex (expr, RegexOptions.IgnoreCase);
if (regEx.IsMatch (origPathToMatch))
{
+2008-02-28 Marek Habersack <mhabersack@novell.com>
+
+ * TemplateControlParser.cs: when registering a control, check for
+ the .ascx extension case-insensitively. Fixes bug #364995
+
2008-02-28 Igor Zelmanovich <igorz@mainsoft.com>
* Control.cs:
fixed exception propagation in case of multiple control with same id
were found.
-
2008-02-26 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: a better error message.
if (tagname != null && src == null)
ThrowParseException ("Need a Src attribute with TagName.");
- if (!src.EndsWith (".ascx"))
+ if (!StrUtils.EndsWith (src, ".ascx", true))
ThrowParseException ("Source file extension for controls must be .ascx");
RegisterCustomControl (tagprefix, tagname, src);