Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Sep 1, 2019
1 parent de435ec commit edd9c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkix/src/main/java/org/bouncycastle/est/ESTService.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ESTService
private final String server;
private final ESTClientProvider clientProvider;

private static final Pattern pathInvalid = Pattern.compile("^[0-9a-zA-Z_\\-.~!$&'()*+,;:=]+");
private static final Pattern pathInValid = Pattern.compile("^[0-9a-zA-Z_\\-.~!$&'()*+,;:=]+");

ESTService(
String serverAuthority, String label,
Expand Down Expand Up @@ -630,7 +630,7 @@ private String verifyLabel(String label)
throw new IllegalArgumentException("Label set but after trimming '/' is not zero length string.");
}

if (!pathInvalid.matcher(label).matches())
if (!pathInValid.matcher(label).matches())
{
throw new IllegalArgumentException("Server path " + label + " contains invalid characters");
}
Expand Down

0 comments on commit edd9c67

Please sign in to comment.