This commit is contained in:
Telesphoreo 2022-08-02 00:09:46 -05:00 committed by GitHub
parent a257fb2f9c
commit e9395e193a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" +