Skip to content

Commit

Permalink
(CodeQL) Fixed finding: "Information exposure through an error message"
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeebot[bot] authored Nov 27, 2024
1 parent 870e3d8 commit f2d5c9c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
.encodeForHTML(new String(b, 0, size)));
} catch (Exception e) {
System.out.println("Couldn't open FileInputStream on file: '" + fileName + "'");
response.getWriter()
.println(
"Problem getting FileInputStream: "
+ org.owasp
.esapi
.ESAPI
.encoder()
.encodeForHTML(e.getMessage()));
} finally {
if (fis != null) {
try {
Expand Down

0 comments on commit f2d5c9c

Please sign in to comment.