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

@ -96,7 +96,7 @@ namespace ScrewTurn.Wiki {
string mime = "";
try {
string ext = Path.GetExtension(filename);
if(ext.StartsWith(".")) ext = ext.Substring(1).ToLower(); // Remove trailing dot
if(ext.StartsWith(".")) ext = ext.Substring(1).ToLowerInvariant(); // Remove trailing dot
mime = GetMimeType(ext);
}
catch {