This commit is contained in:
fgerlits 2006-05-19 11:54:15 +00:00
parent b78bb640ee
commit f35f964d1e

View file

@ -515,7 +515,7 @@ UploadFileWindow::FileType
UploadFileWindow :: determineFileType(const std::string & fileName) UploadFileWindow :: determineFileType(const std::string & fileName)
throw () throw ()
{ {
unsigned int dotPosition = fileName.find('.'); unsigned int dotPosition = fileName.rfind('.');
if (dotPosition == std::string::npos) { if (dotPosition == std::string::npos) {
return invalidType; return invalidType;
} }