|
@@ -2068,8 +2068,10 @@ public class ExcelTabController extends BladeController {
|
|
|
OutputStream toClient = new BufferedOutputStream(response.getOutputStream());
|
|
|
response.setContentType("application/pdf");
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
- fileName = fileName.replaceAll("/", "_").replaceAll("\\\\", "_");
|
|
|
- response.setHeader("Content-disposition", "attachment;filename=" + URLEncoder.encode(fileName,"UTF-8") + ".pdf");
|
|
|
+ fileName = fileName.replaceAll("/", "_");
|
|
|
+ String encode = URLEncoder.encode(fileName, "UTF-8");
|
|
|
+ encode = encode.replaceAll( "%2B", "+");
|
|
|
+ response.setHeader("Content-disposition", "attachment;filename=" + encode + ".pdf");
|
|
|
toClient.write(buffer);
|
|
|
toClient.flush();
|
|
|
toClient.close();
|