提交 d2f2550f 编写于 作者: O o2null

Merge branch 'fix/一键下载标题带斜杠问题处理' into 'develop'

【流程平台】修复一键下载标题带斜杠问题

See merge request o2oa/o2oa!1594
......@@ -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());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册