aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-05-31 09:37:59 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-05-31 09:37:59 +0200
commit345f98658eebbaa7ce616a1be5f0c6189d28bbed (patch)
tree14eaebd385c2bd380e103fa71aaa981664eb14c1 /id/ConfigWebTool
parent26363c01da4887fe3252941e12afc32dbf1f9854 (diff)
downloadmoa-id-spss-345f98658eebbaa7ce616a1be5f0c6189d28bbed.tar.gz
moa-id-spss-345f98658eebbaa7ce616a1be5f0c6189d28bbed.tar.bz2
moa-id-spss-345f98658eebbaa7ce616a1be5f0c6189d28bbed.zip
fix bPK validation in configuration GUI
Diffstat (limited to 'id/ConfigWebTool')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/UserDatabaseFormValidator.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/UserDatabaseFormValidator.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/UserDatabaseFormValidator.java
index 7b49275b3..44afd0599 100644
--- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/UserDatabaseFormValidator.java
+++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/UserDatabaseFormValidator.java
@@ -29,7 +29,6 @@ import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
-import at.gv.egovernment.moa.id.commons.db.NewConfigurationDBRead;
import at.gv.egovernment.moa.id.commons.db.dao.config.UserDatabase;
import at.gv.egovernment.moa.id.commons.validation.ValidationHelper;
import at.gv.egovernment.moa.id.config.webgui.exception.ConfigurationException;
@@ -188,10 +187,10 @@ public class UserDatabaseFormValidator {
check = form.getBpk();
if (MiscUtil.isNotEmpty(check)) {
- if (ValidationHelper.containsPotentialCSSCharacter(check, false)) {
+ if (ValidationHelper.isNotValidIdentityLinkSigner(check)) {
log.warn("BPK contains potentail XSS characters: " + check);
errors.add(LanguageHelper.getErrorString("validation.edituser.bpk.valid",
- new Object[] {ValidationHelper.getPotentialCSSCharacter(false)}, request ));
+ new Object[] {ValidationHelper.getNotValidIdentityLinkSignerCharacters()}, request ));
}
}