diff options
author | mykola.salomatin <mykola.salomatin@globallogic.com> | 2021-02-04 18:42:16 +0200 |
---|---|---|
committer | mykola.salomatin <mykola.salomatin@globallogic.com> | 2021-02-04 18:42:16 +0200 |
commit | da261ffdee9e0a49d1e3ec9e06fa3b6828596dd5 (patch) | |
tree | 23ff6a85c500444f942a7bf356fb08793531f9a5 | |
parent | 9c6f78b046962c13584f1c35ba253749f1cb9585 (diff) | |
download | libmts-da261ffdee9e0a49d1e3ec9e06fa3b6828596dd5.tar.gz libmts-da261ffdee9e0a49d1e3ec9e06fa3b6828596dd5.tar.bz2 libmts-da261ffdee9e0a49d1e3ec9e06fa3b6828596dd5.zip |
[MTX-3785] mPower R.5.4: GP-971 - Device shall implement file type restrictions for all “upload” sections on the UI
-rw-r--r-- | src/MTS_Text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_Text.cpp b/src/MTS_Text.cpp index 8dcb85f..8672acb 100644 --- a/src/MTS_Text.cpp +++ b/src/MTS_Text.cpp @@ -702,7 +702,7 @@ bool Text::parseHex(uint64_t& value, const std::string& str) { std::string Text::getFileExtension(const std::string& filename) { size_t pos = filename.rfind('.', filename.length()); if (pos != std::string::npos) { - return (filename.substr(pos + 1, filename.length() - pos)); + return (filename.substr(pos + 1)); } return (""); } |