Skip to content

Commit 10be455

Browse files
Fixed vulnerbility
1 parent bd5fa84 commit 10be455

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/de/martinspielmann/wicket/pwnedpasswordsvalidator/PwnedPasswordsValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ protected Status getResponseStatus(String pw) {
147147

148148
HttpURLConnection c;
149149
if (getProxy() != null) {
150-
c = (HttpURLConnection) getApiUrl(pw).openConnection(getProxy());
150+
c = (HttpURLConnection) getApiUrl(pw).toURL().openConnection(getProxy());
151151
} else {
152-
c = (HttpURLConnection) getApiUrl(pw).openConnection();
152+
c = (HttpURLConnection) getApiUrl(pw).toURL().openConnection();
153153
}
154154
c.setRequestMethod("GET");
155155
c.setRequestProperty("User-Agent", "pingunaut/wicket-pwnedpasswords-validator");

0 commit comments

Comments
 (0)