NOISSUE and don't break the thing in the process...

This commit is contained in:
Petr Mrázek 2023-02-02 21:43:01 +01:00
parent f624754f0c
commit 75568ed04b

View File

@ -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");