Skip to content

Commit

Permalink
fix(util): Fix the config printing in Java 17
Browse files Browse the repository at this point in the history
 Printing the CsrfGuard's config leads to java.lang.reflect.InaccessibleObjectException in Java 17 #179
  • Loading branch information
forgedhallpass committed May 24, 2023
1 parent 4e8ffc3 commit 4185d63
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ private Object customToString(final Object obj, final String prefixOffset) {
result = handleActions((IAction) obj, prefixOffset);
} else if (className.startsWith("org.owasp.csrfguard")) { // TODO extract and reuse
result = className;
} else if (className.equals(java.util.regex.Pattern.class.getName())) {
result = obj.toString();
} else {
result = obj;
}
Expand Down

0 comments on commit 4185d63

Please sign in to comment.