Fixed and closed #519 : changed all occurrences of ToLower() into ToLowerInvariant().
This commit is contained in:
parent
072ee52d8f
commit
5f05cecc20
8 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue