Skip to content

Commit

Permalink
#492 Sonar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenzler committed Oct 19, 2020
1 parent 1bd53e0 commit 9cf21cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected void doPost(final HttpServletRequest req, final HttpServletResponse re

RequestParameters reqParams = RequestParameters.fromRequest(req, acInstallationService);
LOG.info("Received POST request to apply AC Tool config with configurationRootPath={} basePaths={}",
reqParams.configurationRootPath, reqParams.basePaths);
escapeHtml4(reqParams.configurationRootPath), reqParams.basePaths);

InstallationLog log = acInstallationService.apply(reqParams.configurationRootPath, reqParams.getBasePathsArr(),
reqParams.applyOnlyIfChanged);
Expand All @@ -85,7 +85,7 @@ protected void doPost(final HttpServletRequest req, final HttpServletResponse re
resp.setContentType("text/plain");
if (((PersistableInstallationLogger) log).isSuccess()) {
resp.setStatus(HttpServletResponse.SC_OK);
pw.println("Applied AC Tool config from " + reqParams.configurationRootPath + ":\n" + msg);
pw.println("Applied AC Tool config from " + escapeHtml4(reqParams.configurationRootPath) + ":\n" + msg);
} else {
resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
pw.println("Error while applying AC Tool config from " + reqParams.configurationRootPath);
Expand Down

0 comments on commit 9cf21cb

Please sign in to comment.