Disallow filenames with trailing periods
This commit is contained in:
parent
02907ebe75
commit
b3f8a5a7c0
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ bool addon_name_legal(const std::string& name)
|
|||
|
||||
bool addon_filename_legal(const std::string& name)
|
||||
{
|
||||
if(name.empty() || name == "." ||
|
||||
if(name.empty() || name.back() == '.' ||
|
||||
name.find_first_of("/:\\~ \r\n\v\t") != std::string::npos ||
|
||||
name.find("..") != std::string::npos) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue