Fixed and closed #519 : changed all occurrences of ToLower() into ToLowerInvariant().

This commit is contained in:
Matteo Tomasini 2010-03-26 09:42:44 +00:00
parent 072ee52d8f
commit 5f05cecc20
8 changed files with 15 additions and 15 deletions

View file

@ -604,8 +604,8 @@ namespace ScrewTurn.Wiki {
string virtualDirectory = HttpContext.Current.Request.ApplicationPath;
// We need to convert the case of the virtual directory to that used in the url
// Return the virtual directory as is if we can't find it in the URL
if (requestUrl.ToLower().Contains(virtualDirectory.ToLower())) {
return requestUrl.Substring(requestUrl.ToLower().IndexOf(virtualDirectory.ToLower()),virtualDirectory.Length);
if(requestUrl.ToLowerInvariant().Contains(virtualDirectory.ToLowerInvariant())) {
return requestUrl.Substring(requestUrl.ToLowerInvariant().IndexOf(virtualDirectory.ToLowerInvariant()), virtualDirectory.Length);
}
return virtualDirectory;
}