aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:24:58 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 11:25:26 +0200
commitbf0aa0afbb336ec5d5acb719e130d42f15bc8900 (patch)
tree330f08ac1671a9a993e59dfef1d87a392234d0e5 /pdf-as-web/src/main/java/at/gv/egiz
parentca954e8fc5832a7ff686e0b878951079d8f8fe12 (diff)
parent3fde4b0164d1eb2f3fb32718b4011fff2b2b80ed (diff)
downloadpdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.tar.gz
pdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.tar.bz2
pdf-as-4-bf0aa0afbb336ec5d5acb719e130d42f15bc8900.zip
Merge branch 'feature/issue_44' into master
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
index 5f2dc95c..6e80fad8 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PlaceholderGeneratorServlet.java
@@ -73,9 +73,11 @@ public class PlaceholderGeneratorServlet extends HttpServlet implements Placehol
String filename = "placeholder";
if(id != null && !id.isEmpty()) {
- id = id.replaceAll("[^a-zA-Z0-9]", "_");
- buildString = buildString + ";" + SignaturePlaceholderData.ID_KEY + "=" + id;
- filename = filename + "_" + id;
+ id = id.replaceAll("[^0-9]", "");
+ if(id != null && !id.isEmpty()) {
+ buildString = buildString + ";" + SignaturePlaceholderData.ID_KEY + "=" + id;
+ filename = filename + "_" + id;
+ }
}
if(profile != null && !profile.isEmpty()) {