3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

schem list validation

Dieser Commit ist enthalten in:
Jesse Boyd 2018-10-17 23:57:36 +11:00
Ursprung f65887c957
Commit a7c6d5e987
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -603,6 +603,11 @@ public class SchematicCommands extends MethodCommands {
if (uriStr.startsWith("file:/")) { if (uriStr.startsWith("file:/")) {
File file = new File(uri.getPath()); File file = new File(uri.getPath());
name = file.getName(); name = file.getName();
try {
if (!MainUtil.isInSubDirectory(dir, file)) {
throw new RuntimeException(new CommandException("Invalid path"));
}
} catch (IOException ignore) {}
if (file.isDirectory()) { if (file.isDirectory()) {
isDir = true; isDir = true;
color = "&6"; color = "&6";