diff --git a/src/main/java/dev/plex/request/impl/SchematicDownloadEndpoint.java b/src/main/java/dev/plex/request/impl/SchematicDownloadEndpoint.java index 997a4e9..e293f1f 100644 --- a/src/main/java/dev/plex/request/impl/SchematicDownloadEndpoint.java +++ b/src/main/java/dev/plex/request/impl/SchematicDownloadEndpoint.java @@ -68,7 +68,10 @@ public class SchematicDownloadEndpoint extends AbstractServlet try { byte[] schemData = HTTPDModule.fileCache.getFile(schemFile); - if (schemData != null) outputStream.write(schemData); + if (schemData != null) + { + outputStream.write(schemData); + } } catch (IOException ignored) { @@ -92,8 +95,9 @@ public class SchematicDownloadEndpoint extends AbstractServlet Arrays.sort(alphabetical); for (File worldeditFile : alphabetical) { + String sanitizedName = worldeditFile.getName().replaceAll("<[^>]*>", ""); sb.append("" + - "" + worldeditFile.getName() + "" + + "" + sanitizedName + "" + "" + formattedSize(worldeditFile.length()) + "" + ""); }