mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
NOISSUE and don't break the thing in the process...
This commit is contained in:
parent
f624754f0c
commit
75568ed04b
@ -318,6 +318,7 @@ void InstanceImportTask::processModrinth() {
|
||||
if(simplifiedPath.startsWith("../") || simplifiedPath.contains("/../") || fileInfo.isAbsolute()) {
|
||||
throw JSONValidationError("Invalid path found in modpack files:\n\n" + simplifiedPath);
|
||||
}
|
||||
file.path = simplifiedPath;
|
||||
|
||||
// env doesn't have to be present, in that case mod is required
|
||||
auto env = Json::ensureObject(obj, "env");
|
||||
|
Loading…
Reference in New Issue
Block a user