Skip to content

Commit 99a90c3

Browse files
Change this code to not log user-controlled data.
1 parent 709a14f commit 99a90c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

elections-ejb/src/main/java/net/lacnic/elections/ejb/impl/ElectionsManagerEJBBean.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,8 @@ private boolean parseCaptchaResponse(String response) {
155155
public boolean isValidCaptchaResponse(String reCaptchaResponse) {
156156
try (CloseableHttpClient httpClient = HttpClients.createDefault();) {
157157
appLogger.info("Start verifying reCAPTCHA response");
158-
appLogger.info("reCAPTCHA response value: " + reCaptchaResponse);
159158

160159
String skGoogleApiReCaptcha = EJBFactory.getInstance().getElectionsParametersEJB().getParameter(Constants.SK_GOOGLE_API_RECAPTCHA);
161-
String checkURL = "https://www.google.com/recaptcha/api/siteverify" + "?secret=" + skGoogleApiReCaptcha + "&response=" + reCaptchaResponse;
162-
163-
appLogger.info("Check URL: " + checkURL);
164160

165161
HttpPost post = new HttpPost("https://www.google.com/recaptcha/api/siteverify");
166162

0 commit comments

Comments
 (0)