From b5431b8b57f0b8d7ba281e89c84e9cdba691494d Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 6 Nov 2023 07:53:06 +0100 Subject: fix(gui): escape special characters in error messages --- .../core/impl/idp/auth/services/ProtocolAuthenticationService.java | 3 ++- 1 file changed, 2 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 08fcf6f8..6de2f94a 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 @@ -511,7 +511,8 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer */ errorCodeParams[i] = params[i].toString() .replaceAll("'", "''") - .replaceAll("\\{", "{"); + .replaceAll("\\{", "{") + .replaceAll("\\}", "}"); } else { errorCodeParams[i] = "null"; -- cgit v1.2.3