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:
Oliver Hamlet
2015-07-12 18:37:36 +01:00
parent c7ed9f2a72
commit 400ea5b22a
+5
View File
@@ -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