summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2023-03-20 20:04:16 +0100
committerThomas <>2023-03-20 20:04:16 +0100
commitdad427bc3c7604d8abc4625a237612130fefea6a (patch)
treefc0df7d4b8f40290e59bd138060880c2122d0db2
parent3351b61c25619941f516250aaa7082b3ce7cb03c (diff)
downloadEAAF-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
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java4
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("\\{", "&#123;");
} else {
errorCodeParams[i] = "null";