Skip to content

Commit

Permalink
Ensure indexOfPath is bigger than indexOfAt
Browse files Browse the repository at this point in the history
  • Loading branch information
FROZENCADET authored Oct 10, 2024
1 parent e0a6363 commit 7c6c127
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ private String parseUri(final String uri) {

// For IPv6 address having more than one ":", it should look for the last occurrence
final int indexOfPath = uri.lastIndexof(':');
if (indexOfPath == -1) {
if (indexOfPath <= indexOfAt) {
throw new BuildException("no remote path in %s", uri);
}

Expand Down

0 comments on commit 7c6c127

Please sign in to comment.