Skip to content

Commit 423832c

Browse files
(CodeQL) Fixed finding: "Information exposure through an error message"
1 parent 870e3d8 commit 423832c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00001.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
8383
.encodeForHTML(new String(b, 0, size)));
8484
} catch (Exception e) {
8585
System.out.println("Couldn't open FileInputStream on file: '" + fileName + "'");
86-
response.getWriter()
87-
.println(
88-
"Problem getting FileInputStream: "
89-
+ org.owasp
90-
.esapi
91-
.ESAPI
92-
.encoder()
93-
.encodeForHTML(e.getMessage()));
9486
} finally {
9587
if (fis != null) {
9688
try {

0 commit comments

Comments
 (0)