Skip to content

Commit

Permalink
Update zip filename
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHarbo committed Jul 20, 2023
1 parent dc9d5c0 commit beb6577
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,9 @@ private String createZipFilename(String contentType) {
Date date = new Date() ;
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");

String filename = dateFormat.format(date) + "_" + contentType.replaceAll(" ", "")
.replaceAll("/", "_") + "_export.zip";
String filename = dateFormat.format(date) + "_" + contentType.replaceAll(" OR ", "_or_")
.replaceAll(" ", "")
.replaceAll("/", "_") + "_export.zip";
filename = Normalizer.normalize(filename, Normalizer.Form.NFD);

return filename.replaceAll("[^\\x00-\\x7F]", "");
Expand Down

0 comments on commit beb6577

Please sign in to comment.