aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src
diff options
context:
space:
mode:
authorEmina Ahmetovic <emina.ahmetovic@egiz.gv.at>2021-01-18 16:07:28 +0100
committerEmina Ahmetovic <emina.ahmetovic@egiz.gv.at>2021-01-18 16:07:28 +0100
commita3bef06e6b3f2e465703aa8b64ab36f6e3d76de7 (patch)
treef7cf0bc30c40598b6420283d7c51da11a9f41703 /pdf-as-web/src
parent78a01744e1fc3e8d45348b623a3a80906d31e373 (diff)
downloadpdf-as-4-a3bef06e6b3f2e465703aa8b64ab36f6e3d76de7.tar.gz
pdf-as-4-a3bef06e6b3f2e465703aa8b64ab36f6e3d76de7.tar.bz2
pdf-as-4-a3bef06e6b3f2e465703aa8b64ab36f6e3d76de7.zip
update placeholder search
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
index 8fe679f2..2c2af9a9 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
@@ -27,6 +27,7 @@ import at.gv.egiz.pdfas.common.exceptions.PDFASError;
import at.gv.egiz.pdfas.common.exceptions.PdfAsException;
import at.gv.egiz.pdfas.common.exceptions.PdfAsSettingsValidationException;
import at.gv.egiz.pdfas.common.settings.ISettings;
+import at.gv.egiz.pdfas.common.utils.StringUtils;
import at.gv.egiz.pdfas.lib.api.IConfigurationConstants;
import at.gv.egiz.pdfas.lib.api.PdfAsFactory;
import at.gv.egiz.pdfas.lib.api.verify.VerifyParameter.SignatureVerificationLevel;
@@ -343,10 +344,9 @@ public class ExternSignServlet extends HttpServlet {
//read and set placholder web id
try{
String placeholder_id = PdfAsParameterExtractor.getPlaceholderId(request);
- if(!placeholder_id.equalsIgnoreCase("")) {
+ if(org.apache.commons.lang3.StringUtils.isNotEmpty(placeholder_id)) {
PlaceholderWebConfiguration.setValue(IConfigurationConstants.PLACEHOLDER_WEB_ID, placeholder_id);
- } else
- {
+ } else {
PlaceholderWebConfiguration.clear();
}