|
|
@@ -1228,7 +1228,7 @@ public class Business {
|
|
|
}
|
|
|
try (ZipOutputStream zos = new ZipOutputStream(os)) {
|
|
|
for (Map.Entry<String, Attachment> entry : filePathMap.entrySet()) {
|
|
|
- zos.putNextEntry(new ZipEntry(entry.getKey()));
|
|
|
+ zos.putNextEntry(new ZipEntry(new ZipEntry(StringUtils.replaceEach(entry.getKey(), new String[]{"/","\\"}, new String[]{"-","-"}))));
|
|
|
StorageMapping mapping = ThisApplication.context().storageMappings().get(Attachment.class,
|
|
|
entry.getValue().getStorage());
|
|
|
try (ByteArrayOutputStream os1 = new ByteArrayOutputStream()) {
|
|
|
@@ -1241,7 +1241,7 @@ public class Business {
|
|
|
|
|
|
if (otherAttMap != null) {
|
|
|
for (Map.Entry<String, byte[]> entry : otherAttMap.entrySet()) {
|
|
|
- zos.putNextEntry(new ZipEntry(entry.getKey()));
|
|
|
+ zos.putNextEntry(new ZipEntry(StringUtils.replaceEach(entry.getKey(), new String[]{"/","\\"}, new String[]{"-","-"})));
|
|
|
zos.write(entry.getValue());
|
|
|
}
|
|
|
}
|