aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java
diff options
context:
space:
mode:
authorThomas <>2023-06-29 16:30:59 +0200
committerThomas <>2023-06-29 16:30:59 +0200
commitd3ac6e39d94855329a9a6be30ee6b96fd83979d2 (patch)
treeba24ab815e591f66b29db3431ebcada79b55eda7 /pdf-as-web/src/main/java
parent234176b7fe5c4178449d74a9627c3645212ac821 (diff)
downloadpdf-as-4-d3ac6e39d94855329a9a6be30ee6b96fd83979d2.tar.gz
pdf-as-4-d3ac6e39d94855329a9a6be30ee6b96fd83979d2.tar.bz2
pdf-as-4-d3ac6e39d94855329a9a6be30ee6b96fd83979d2.zip
fix(core): set valid encoded 'Content-Disposition' header in provide-signed-PDF servlet
Diffstat (limited to 'pdf-as-web/src/main/java')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
index 4e613ed4..031eeac2 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
@@ -145,7 +145,7 @@ public class PDFData extends HttpServlet {
}
// build response
- response.setHeader("Content-Disposition", "inline;filename=multiple_documents.zip");
+ response.setHeader("Content-Disposition", "inline;filename=\"multiple_documents.zip\"");
response.setContentType("application/zip");
final OutputStream os = response.getOutputStream();
@@ -234,8 +234,8 @@ public class PDFData extends HttpServlet {
return;
}
}
- response.setHeader("Content-Disposition", "inline;filename="
- + PdfAsHelper.getPDFFileName(request));
+ response.setHeader("Content-Disposition", "inline;filename=\""
+ + PdfAsHelper.getPDFFileName(request) + "\"");
final String pdfCert = signedFile.getSignerCertificate();
if (pdfCert != null) {
response.setHeader("Signer-Certificate", pdfCert);