From dad427bc3c7604d8abc4625a237612130fefea6a Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 20 Mar 2023 20:04:16 +0100 Subject: fix(gui): escape error parameters that contains a '{' because that is not supported by error template --- .../core/impl/idp/auth/services/ProtocolAuthenticationService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3