make file extensions lowercase before comparing them

This commit is contained in:
Andrzej Rybczak
2008-11-21 19:37:08 +01:00
parent e96c8d5f58
commit f71c02fccc
2 changed files with 3 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ namespace
return false;
string ext = file.substr(last_dot+1);
ToLower(ext);
for (int i = 0; supported_extensions[i] != "."; i++)
if (ext == supported_extensions[i])
return true;