ignore filenames with '..' in them

This commit is contained in:
Gunter Labes 2007-11-22 15:46:00 +00:00
parent b79036b88b
commit c92fe6697f

View file

@ -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.