Fix invalid stamps names being accepted
The .size() == 14 check got lost in the last commit.
This commit is contained in:
parent
9e712eba08
commit
ed13f33e7a
@ -983,7 +983,10 @@ void Client::RescanStamps()
|
|||||||
stampIDs.clear();
|
stampIDs.clear();
|
||||||
for (auto &stamp : Platform::DirectorySearch("stamps", "", { ".stm" }))
|
for (auto &stamp : Platform::DirectorySearch("stamps", "", { ".stm" }))
|
||||||
{
|
{
|
||||||
stampIDs.push_front(stamp.Substr(0, 10));
|
if (stamp.size() == 14)
|
||||||
|
{
|
||||||
|
stampIDs.push_front(stamp.Substr(0, 10));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stampIDs.sort(std::greater<ByteString>());
|
stampIDs.sort(std::greater<ByteString>());
|
||||||
updateStamps();
|
updateStamps();
|
||||||
|
Reference in New Issue
Block a user