Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6f2f61

Browse files
Update java/ql/src/Security/CWE/CWE-023/PartialPathTraversalBad.java
Co-authored-by: Jonathan Leitschuh <[email protected]>
1 parent 1681407 commit c6f2f61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
public class PartialPathTraversalBad {
2-
public void esapiExample(File dir, File parent) throws IOException {
2+
public void example(File dir, File parent) throws IOException {
33
if (!dir.getCanonicalPath().startsWith(parent.getCanonicalPath())) {
44
throw new IOException("Invalid directory: " + dir.getCanonicalPath());
55
}

0 commit comments

Comments
 (0)