summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2023-11-06 07:53:06 +0100
committerThomas <>2023-11-29 14:10:56 +0100
commit96e0c0799e653e832f356b8a465a872cdc02c2c1 (patch)
tree0a22ec9b26212a717aaf133a9c25b02d67e4fbc0
parentc917f335cd43cc1001c2cb4e60e09fa896454e3e (diff)
downloadEAAF-Components-96e0c0799e653e832f356b8a465a872cdc02c2c1.tar.gz
EAAF-Components-96e0c0799e653e832f356b8a465a872cdc02c2c1.tar.bz2
EAAF-Components-96e0c0799e653e832f356b8a465a872cdc02c2c1.zip
fix(gui): escape special characters in error messages
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java3
1 files changed, 2 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 0e454c7a..bf449d44 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("\\{", "&#123;");
+ .replaceAll("\\{", "&#123;")
+ .replaceAll("\\}", "&#125;");
} else {
errorCodeParams[i] = "null";