mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-27 02:31:36 +01:00
Fix numbers being replaced by undescores in API#createImage()
This commit is contained in:
parent
5c729b6c0a
commit
47b0c60a7f
@ -96,7 +96,7 @@ public Collection<BlueMapWorld> getWorlds() {
|
||||
|
||||
@Override
|
||||
public String createImage(BufferedImage image, String path) throws IOException {
|
||||
path = path.replaceAll("[^a-zA-Z_\\.\\-\\/]", "_");
|
||||
path = path.replaceAll("[^a-zA-Z0-9_.\\-/]", "_");
|
||||
String separator = FileSystems.getDefault().getSeparator();
|
||||
|
||||
Path webRoot = plugin.getRenderConfig().getWebRoot().toPath().toAbsolutePath();
|
||||
|
Loading…
Reference in New Issue
Block a user