mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-03 20:39:33 -05:00
Fix range error when minimizing the string
Closes #38778 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
b5fa1d0ba9
commit
3e0bb6dfbd
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ public class VerifyMessageProperties {
|
|||
start++;
|
||||
}
|
||||
int end = 0;
|
||||
while (end < sanitized.length() && end < value.length() && value.charAt(value.length() - end - 1) == sanitized.charAt(sanitized.length() - end - 1)) {
|
||||
while (end < sanitized.length() - start && end < value.length() - start && value.charAt(value.length() - end - 1) == sanitized.charAt(sanitized.length() - end - 1)) {
|
||||
end++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue