Skip to main content

Module path

Module path 

Source
Expand description

Path construction and validation utilities.

Functions§

contained_join
Join an untrusted path to a base directory with traversal clamping.
validate_ref_name
Validate a git ref name (branch/tag) for safe use in paths.
validate_relative_path
Validate that a relative path doesn’t contain traversal components.