ignore filenames with '..' in them
This commit is contained in:
parent
b79036b88b
commit
c92fe6697f
1 changed files with 2 additions and 0 deletions
|
@ -767,6 +767,8 @@ bool preprocessor_data::get_chunk()
|
|||
std::string prefix;
|
||||
std::string nfname;
|
||||
std::string const &newfilename = symbol;
|
||||
// Ignore filenames with '..' in them.
|
||||
if (newfilename.find("..") == std::string::npos)
|
||||
{
|
||||
// If the filename begins with a '~',
|
||||
// then look in the user's data directory.
|
||||
|
|
Loading…
Add table
Reference in a new issue