master
Telesphoreo 4 months ago committed by GitHub
parent a257fb2f9c
commit e9395e193a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/main/java/dev/plex/request/impl/SchematicDownloadEndpoint.java

@ -78,7 +78,7 @@ public class SchematicDownloadEndpoint extends AbstractServlet
for (File worldeditFile : listFilesForFolder(worldeditFolder))
{
String fixedPath = worldeditFile.getPath().replace("plugins/FastAsyncWorldEdit/schematics/", "");
fixedPath.replace("plugins/WorldEdit/schematics/", "");
fixedPath = fixedPath.replace("plugins/WorldEdit/schematics/", "");
String sanitizedName = fixedPath.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
sb.append(" <tr>\n" +
" <th scope=\"row\">\n <a href=\"" + fixedPath + "\" download>" + sanitizedName + "</a>\n </th>\n" +

Loading…
Cancel
Save