From a3bef06e6b3f2e465703aa8b64ab36f6e3d76de7 Mon Sep 17 00:00:00 2001 From: Emina Ahmetovic Date: Mon, 18 Jan 2021 16:07:28 +0100 Subject: update placeholder search --- .../main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas') 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(); } -- cgit v1.2.3