Skip to content

Commit 209a216

Browse files
Update java/ql/src/Security/CWE/CWE-023/PartialPathTraversalGood.java
Co-authored-by: Jonathan Leitschuh <jonathan.leitschuh@gmail.com>
1 parent c6f2f61 commit 209a216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/ql/src/Security/CWE/CWE-023/PartialPathTraversalGood.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.io.File;
22

33
public class PartialPathTraversalGood {
4-
public void esapiExample(File dir, File parent) throws IOException {
4+
public void example(File dir, File parent) throws IOException {
55
if (!dir.getCanonicalPath().startsWith(parent.getCanonicalPath().toPath())) {
66
throw new IOException("Invalid directory: " + dir.getCanonicalPath());
77
}

0 commit comments

Comments
 (0)