Skip to content

Commit

Permalink
Update sentry/src/main/java/io/sentry/util/UrlUtils.java
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Dinauer <[email protected]>
  • Loading branch information
lcian and adinauer authored Mar 6, 2025
1 parent 5bcad51 commit 7c4b00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry/src/main/java/io/sentry/util/UrlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static boolean isValidAbsoluteUrl(final @NotNull URI uri) {
if (url.startsWith("@")) {
return SENSITIVE_DATA_SUBSTITUTE + url;
}
final @NotNull String userInfo = url.substring(0, url.indexOf('@') - 1);
final @NotNull String userInfo = url.substring(0, url.indexOf('@'));
final @NotNull String filteredUserInfo =
userInfo.contains(":")
? (SENSITIVE_DATA_SUBSTITUTE + ":" + SENSITIVE_DATA_SUBSTITUTE)
Expand Down

0 comments on commit 7c4b00f

Please sign in to comment.