diff --git a/java/ql/src/Security/CWE/CWE-023/PartialPathTraversalBad.java b/java/ql/src/Security/CWE/CWE-023/PartialPathTraversalBad.java index 633a9046f0a..e933679aa44 100644 --- a/java/ql/src/Security/CWE/CWE-023/PartialPathTraversalBad.java +++ b/java/ql/src/Security/CWE/CWE-023/PartialPathTraversalBad.java @@ -1,5 +1,5 @@ public class PartialPathTraversalBad { - public void esapiExample(File dir, File parent) throws IOException { + public void example(File dir, File parent) throws IOException { if (!dir.getCanonicalPath().startsWith(parent.getCanonicalPath())) { throw new IOException("Invalid directory: " + dir.getCanonicalPath()); }