diff options
author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-16 14:57:26 +0200 |
---|---|---|
committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-06-16 14:57:26 +0200 |
commit | cf5203609c5fc6b050737fcd7a54ce0d3f7d46d5 (patch) | |
tree | aba9fcc2b0bd4bb596f1bf7005e60ccecb02a0db | |
parent | fe2996adcb2d8627fe63ee9013302304f36c3d3c (diff) | |
download | pdf-as-4-cf5203609c5fc6b050737fcd7a54ce0d3f7d46d5.tar.gz pdf-as-4-cf5203609c5fc6b050737fcd7a54ce0d3f7d46d5.tar.bz2 pdf-as-4-cf5203609c5fc6b050737fcd7a54ce0d3f7d46d5.zip |
ignore empty signatureblock parameters via pdf-as-web form, still RC1
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java | 1 | ||||
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java index 06164d53..b5600729 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java @@ -401,7 +401,6 @@ public class PdfAsFactory implements IConfigurationConstants { jarAttributes = mainAttributes; return mainAttributes; } catch (Exception e) { - // handle jarAttributes = new Attributes(); } return null; diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java index 1ec94c86..00ca9446 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsParameterExtractor.java @@ -93,7 +93,8 @@ public class PdfAsParameterExtractor { if (parameterName.startsWith(PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER)) { String key = parameterName.substring(PARAM_DYNAMIC_SIGNATURE_BLOCK_PARAMETER.length()); String value = (String) request.getAttribute(parameterName); - signatureBlockParametersMap.put(key, value); + if(value != null && !value.isEmpty()) + signatureBlockParametersMap.put(key, value); } } return signatureBlockParametersMap; |