Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 5ae93c7

Browse files
committed
Account for reset URLs with no path.
1 parent 67ae432 commit 5ae93c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,7 @@ protected String getResetPasswordUrlPrefix(HttpServletRequest request) {
13661366
i = i < 0 ? 0 : i + 3;
13671367
String domainName = resetPasswordUrlPrefix.substring(i);
13681368
i = domainName.indexOf("/");
1369+
i = i < 0 ? domainName.length() : i;
13691370
domainName = domainName.substring(0, i);
13701371
i = domainName.lastIndexOf(".");
13711372
i = domainName.lastIndexOf(".", i - 1);

0 commit comments

Comments
 (0)