mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-11 09:29:53 +00:00
Simplified filename validation
This commit is contained in:
parent
5b3af7cf9d
commit
ad0e454e66
@ -717,10 +717,6 @@ string SetReservedIds(const string& ids)
|
||||
|
||||
bool IsValidFilename(const string& filename)
|
||||
{
|
||||
if (filename == "." || filename == "..") {
|
||||
return false;
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
return stat(filename.c_str(), &st) || !S_ISREG(st.st_mode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user