mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Check for safe path in active condition.
Not strictly necessary, since all plugins are in the data folder, but better to be consistent in case of future changes.
This commit is contained in:
@@ -317,6 +317,11 @@ namespace loot {
|
||||
if (_parseOnly)
|
||||
return;
|
||||
|
||||
if (!IsSafePath(file)) {
|
||||
BOOST_LOG_TRIVIAL(error) << "Invalid file path: " << file;
|
||||
throw loot::error(loot::error::invalid_args, boost::locale::translate("Invalid file path:").str() + " " + file);
|
||||
}
|
||||
|
||||
if (file == "LOOT")
|
||||
result = false;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user