Skip to content

Commit

Permalink
Fixes Unnecessary escaping
Browse files Browse the repository at this point in the history
Signed-off-by: kaido207 <kaido.hiroki@fujitsu.com>
  • Loading branch information
kaido207 committed Feb 13, 2024
1 parent 88340dc commit c6ab6fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2024 Contributors to the Eclipse Foundation.
* Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -277,7 +278,7 @@ public static void saveRealm(HandlerContext handlerCtx) {
continue;
}
sb.append(oneProp.get("name")).append("=");
String value = ((String) oneProp.get("value")).replaceAll("\\\\", "\\\\\\\\");
String value = ((String) oneProp.get("value"));
value = UtilHandlers.escapePropertyValue(value);
sb.append(value).append(":");
}
Expand Down

0 comments on commit c6ab6fb

Please sign in to comment.