Closes #683
Potential fix for sign issue
Potential fix for templates not working
Incremented version number.
This commit is contained in:
Jesse Boyd
2015-10-24 21:55:34 +11:00
parent 6650ea2a4c
commit e20e4a8650
6 changed files with 13 additions and 10 deletions

View File

@ -70,7 +70,7 @@ public class Template extends SubCommand {
ZipEntry ze = zis.getNextEntry();
while (ze != null) {
final String name = ze.getName();
final File newFile = new File((output + File.separator + name).replaceAll("__TEMP_DIR__", world));
final File newFile = new File((output + File.separator + name.replaceAll("[\\\\|\\|/]", File.separator)).replaceAll("__TEMP_DIR__", world));
new File(newFile.getParent()).mkdirs();
final FileOutputStream fos = new FileOutputStream(newFile);
int len;