Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
Improves comparison of strings in DefaultRedirectResolver
Browse files Browse the repository at this point in the history
Fixes gh-1745
  • Loading branch information
marcelopbarros authored and jgrandja committed Apr 8, 2020
1 parent d93722a commit 9c09209
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,10 @@ private boolean matchQueryParams(MultiValueMap<String, String> registeredRedirec
* @return true if strings are equal, false otherwise
*/
private boolean isEqual(String str1, String str2) {
if (StringUtils.isEmpty(str1) && StringUtils.isEmpty(str2)) {
return true;
} else if (!StringUtils.isEmpty(str1)) {
return str1.equals(str2);
if (StringUtils.isEmpty(str1)) {
return StringUtils.isEmpty(str2);
} else {
return false;
return str1.equals(str2);
}
}

Expand Down

0 comments on commit 9c09209

Please sign in to comment.