mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-16 04:13:11 +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()) {
|
if(simplifiedPath.startsWith("../") || simplifiedPath.contains("/../") || fileInfo.isAbsolute()) {
|
||||||
throw JSONValidationError("Invalid path found in modpack files:\n\n" + simplifiedPath);
|
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
|
// env doesn't have to be present, in that case mod is required
|
||||||
auto env = Json::ensureObject(obj, "env");
|
auto env = Json::ensureObject(obj, "env");
|
||||||
|
Loading…
Reference in New Issue
Block a user