diff options
author | Thomas <> | 2023-03-20 20:04:16 +0100 |
---|---|---|
committer | Thomas <> | 2023-03-20 20:04:16 +0100 |
commit | dad427bc3c7604d8abc4625a237612130fefea6a (patch) | |
tree | fc0df7d4b8f40290e59bd138060880c2122d0db2 /eaaf_core | |
parent | 3351b61c25619941f516250aaa7082b3ce7cb03c (diff) | |
download | EAAF-Components-dad427bc3c7604d8abc4625a237612130fefea6a.tar.gz EAAF-Components-dad427bc3c7604d8abc4625a237612130fefea6a.tar.bz2 EAAF-Components-dad427bc3c7604d8abc4625a237612130fefea6a.zip |
fix(gui): escape error parameters that contains a '{' because that is not supported by error template
Diffstat (limited to 'eaaf_core')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java index 153cac50..de0b6f6a 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java @@ -510,7 +510,9 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer * Thymeleaf error in: * th:text="${#messages.msgWithParams('__${msg.errorCode}__', '__${msg.errorParams}__')}" */ - errorCodeParams[i] = params[i].toString().replaceAll("'", "''"); + errorCodeParams[i] = params[i].toString() + .replaceAll("'", "''") + .replaceAll("\\{", "{"); } else { errorCodeParams[i] = "null"; |