Skip to content

Add Validator for Path Traversal #22

@gilday

Description

@gilday

To prevent path traversal, I need to ensure that a given Path does not escape out of a given directory. Looking for a validator that will make this easy e.g.

public static boolean isParent(Path directory, Path path) { ... }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions