Skip to content

Commit

Permalink
fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shnrndk committed Dec 20, 2023
1 parent 2e1f9c7 commit 10fabb4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@
String error = request.getParameter("error");
boolean isAnonymousEnabled = false;
if ((error != null) && error.equals("login_required")) {
if(state!=null){
if (state != null) {
state = URLDecoder.decode(state, "UTF-8");
if(state.contains("/apis") == true || state.contains("/home") == true){
if (state.contains("/apis") || state.contains("/home")) {
isAnonymousEnabled = true;
}
}
if((state != null) && (isAnonymousEnabled == true)){
if ((state != null) && (isAnonymousEnabled == true)) {
response.sendRedirect(postLogoutRedirectURI + "?referrer=" + state);
} else {
response.sendRedirect(postLogoutRedirectURI);
Expand Down

0 comments on commit 10fabb4

Please sign in to comment.