This commit is contained in:
dordsor21 2021-09-28 14:27:36 +01:00
parent e94b85a0fc
commit a3365a12bc
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -235,8 +235,7 @@ public class ClipboardFormats {
}
if (f == null || !f.exists()) {
if (!input.contains("../")) {
dir = worldEdit.getWorkingDirectoryPath(config.saveDir).toFile();
f = MainUtil.resolve(dir, input, format, true);
f = MainUtil.resolve(dir, input, null, true);
}
}
if (f == null || !f.exists() || !MainUtil.isInSubDirectory(working, f)) {