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) {