Skip to content

Commit 240b4cd

Browse files
committed
update tests
1 parent ceea475 commit 240b4cd

File tree

1 file changed

+0
-2
lines changed
  • java/ql/test/query-tests/security/CWE-022/semmle/tests/NewPathInjection/PathInjection/src/main/java/com/PathInjection

1 file changed

+0
-2
lines changed

java/ql/test/query-tests/security/CWE-022/semmle/tests/NewPathInjection/PathInjection/src/main/java/com/PathInjection/SpringIoPathInjection.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public void PathInjection(String path) throws IOException {
3737
new FileSystemResource(
3838
FileSystems.getFileSystem(URI.create("file:///")), path); // $ PathInjection
3939

40-
ResourceUtils.getFile(path); // summaryModel
41-
ResourceUtils.getFile(path); // summaryModel
4240
FileSystemUtils.copyRecursively(filePath, filePath.resolve("/newPath")); // $ PathInjection
4341
FileSystemUtils.copyRecursively(pathFile, pathFile); // $ PathInjection
4442
FileSystemUtils.deleteRecursively(pathFile); // $ PathInjection

0 commit comments

Comments
 (0)