From 7e8e746ffaa5107e4a26bd1ba8a72c2761edd68b Mon Sep 17 00:00:00 2001 From: mkennedywaratek Date: Tue, 17 Jun 2025 12:08:38 +0100 Subject: [PATCH] WAL-5253. Use java5 compatible call to getRealPath() in ReadHTML.java --- src/main/java/com/waratek/spiracle/xss/ReadHTML.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/waratek/spiracle/xss/ReadHTML.java b/src/main/java/com/waratek/spiracle/xss/ReadHTML.java index f192635..ec3647a 100644 --- a/src/main/java/com/waratek/spiracle/xss/ReadHTML.java +++ b/src/main/java/com/waratek/spiracle/xss/ReadHTML.java @@ -14,7 +14,7 @@ static void readHTML(Object out, String taintedInput, ServletRequest req) throws IOException { String line = ""; String XSS = "XSS"; - String htmlFile = req.getServletContext().getRealPath("/") + "xss.html"; + String htmlFile = req.getRealPath("/") + "xss.html"; BufferedReader in = new BufferedReader(new FileReader(htmlFile)); while ((line = in.readLine()) != null) {