Skip to content

Commit

Permalink
Merge pull request #523 from shnrndk/comittershipfixes
Browse files Browse the repository at this point in the history
Fix Formatting Issues
  • Loading branch information
HeshanSudarshana authored Jan 8, 2024
2 parents 94e92bb + 10fabb4 commit 46b669b
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 46b669b

Please sign in to comment.