Apply suggestions from code review

Co-authored-by: Chris Smowton <smowton@github.com>
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
smehta23
2022-07-20 15:32:59 -04:00
committed by GitHub
parent a6970638cb
commit b7e522749f
2 changed files with 2 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
import java.io.File;
public class PartialPathTraversalGood {
public void example(File dir, File parent) throws IOException {
if (!dir.getCanonicalPath().toPath().startsWith(parent.getCanonicalPath().toPath())) {