Skip to content

Commit

Permalink
GUACAMOLE-1293: Make identifier comparison case-insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Jul 21, 2023
1 parent 940c7ad commit edb0e91
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public String getIdentifier() {

@Override
public void setIdentifier(String identifier) {
this.identifier = identifier;
if (identifier != null)
this.identifier = identifier.toLowerCase();
}

@Override
Expand All @@ -66,7 +67,7 @@ public boolean equals(Object other) {
return identifier == null;

// Otherwise, equal only if strings are identical
return otherIdentifier.equals(identifier);
return otherIdentifier.equalsIgnoreCase(identifier);

}

Expand Down

0 comments on commit edb0e91

Please sign in to comment.