Skip to content

Commit

Permalink
Make sure to use normalised paths
Browse files Browse the repository at this point in the history
Non-heiracial maven project layouts may
result in paths with ../ path seperators,
which causes problems with directory escape
detection.

Fixes #9515
  • Loading branch information
stuartwdouglas committed May 25, 2020
1 parent 7ed7942 commit 054f4f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class DirectoryClassPathElement extends AbstractClassPathElement {

public DirectoryClassPathElement(Path root) {
assert root != null : "root is null";
this.root = root;
this.root = root.normalize();
}

@Override
Expand Down

0 comments on commit 054f4f6

Please sign in to comment.