fixing #1682
This commit is contained in:
parent
b78bb640ee
commit
f35f964d1e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue